Hi,
Is there a way to include an arbitrary file, in my case YAML, that will be read and made available when caddy is rendering templates? I have an app that keeps all it’s config data in a flat YAML file and I’d like to build a simple website that let’s me look at that data in a friendly way. If caddy just imported that YAML file then made it available to the templates that’d make this easy to do, but looking at the templates
docs I don’t see an obvious way to get a large amount of structured external data in for the rendering. Also the data is constantly changing so caddy needs to re-read the file whenever it is updated to show the latest data.
Alternatively am I thinking about this the wrong way and there is a better solution I’m not seeing?
Thanks,
griznog