thetillhoff / temingo

Minimal golang templater for websites.
MIT License
1 stars 0 forks source link

autodetect new `values.yaml` #24

Open thetillhoff opened 3 years ago

thetillhoff commented 3 years ago

There is one main values.yaml (name can be adjusted via cli-argument) at the root. And for each folder, when there is one in there as well, it gets merged (with overwrite) into that main/previous values.yaml and is "the new values.yaml" for all sub-templated from this point on. Nesting/chaining allowed!

thetillhoff commented 3 years ago

Idea: Files with name item.yaml override existing properties in map.item. This would merge those yamls into one construct, making it easier to understand (?). Additionally, this would allow for some really cool templating stuff.

This approach can be taken to breadcrumbs as well (allows to override breadcrumbs). Breadcrumbs have to work properly without this as well though.