Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: run @:include and @:embed directives in earlier phase to allow headers in included fragments #670

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

jenshalm
Copy link
Contributor

The @:include and @:embed directives previously ran in the final rewrite phase which is the default for all directives with access to the cursor. This is the most reasonable default in most cases, but here it prevented some very basic use cases like having headers (or anything else with an id) inside the included fragments.

This PR overrides the default phase for these two directives to prevent those issues.

@jenshalm jenshalm added the bug label Dec 30, 2024
@jenshalm jenshalm added this to the 1.3.0 milestone Dec 30, 2024
@jenshalm jenshalm merged commit a18e46c into main Dec 30, 2024
21 checks passed
@jenshalm jenshalm deleted the fix/include-rewrite-phase branch December 30, 2024 20:57
@jenshalm jenshalm changed the title core: run @:include and @:embed directives in RewritePhase.Build to allow headers in included fragments core: run @:include and @:embed directives in earlier phase to allow headers in included fragments Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant