Skip to content

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

Open
Makeshift wants to merge 4 commits into
norwoodj:masterfrom
Makeshift:patch-1
Open

Parse one file at a time to allow templates to overwrite blocks#291
Makeshift wants to merge 4 commits into
norwoodj:masterfrom
Makeshift:patch-1

Conversation

@Makeshift

@Makeshift Makeshift commented Mar 24, 2025

Copy link
Copy Markdown

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
Copy Markdown
Author

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

@norwoodj

norwoodj commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Seems reasonable but you need to resolve your merge conflicts and also it doesn't seem like it works? I still see the content that should be overwritten in the README generated in your example chart

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

3 participants