Skip to content

Document wildcard macro imports - #989

Merged
sebastienros merged 1 commit into
mainfrom
sebros/fix-external-macro-includes
Aug 20, 2026
Merged

Document wildcard macro imports#989
sebastienros merged 1 commit into
mainfrom
sebros/fix-external-macro-includes

Conversation

@sebastienros

Copy link
Copy Markdown
Owner

Issue #551 left users without a documented way to import every macro from an external template. Fluid already supports {% from 'file' %} as the wildcard-equivalent, but the README only showed selective imports.

Changes

  • Document import-all and selective external macro syntax.
  • Clarify that imports copy macros only, suppress template output, and can replace same-named caller values.
  • Add a regression proving import-all loads multiple macros without leaking assigned variables or rendered content.

Testing

  • dotnet test --no-restore --filter "FullyQualifiedName~Fluid.Tests.FromStatementTests"
  • dotnet test --no-restore /p:Compiled=true --filter "FullyQualifiedName~Fluid.Tests.FromStatementTests"

Fixes: #551

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@sebastienros
sebastienros merged commit 5e63ec4 into main Aug 20, 2026
3 checks passed
@sebastienros
sebastienros deleted the sebros/fix-external-macro-includes branch August 20, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Including external macros in separate .liquid partial file seems not to work

1 participant