Skip to content

Parse one file at a time to allow templates to overwrite blocks #291

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Makeshift
Copy link

@Makeshift Makeshift commented Mar 24, 2025

This fixes the compilation errors in #276 and allows define to correctly override block when encountered in a later template. It also stops it from defaulting to the default template if one template file isn't found, which I think was a bug introduced by #276.

I also added an example of the functionality.

By extension, this also fixes #277.

For anyone that wants to risk using this branch, you can download the binaries from here and images here.

@Makeshift
Copy link
Author

Unfortunately, tests fail and I don't know enough golang to fix them :(

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.

[Bug]: template: multiple definition of template
2 participants