Handlebars Support
Several fields in hermit.toml support Handlebars syntax for templating. This allows you to dynamically insert values into your configuration.
With Handlebars, you can access contextual information:
dirthis- The directory of the current hermit.toml filehermit- The location of the.hermitgrabdirectoryhome- The home of the userxdg_config- The directory ofXDG_CONFIG_HOMEor its defaultxdg_data- The directory ofXDG_DATA_HOMEor its defaultxdg_state- The directory ofXDG_STATE_HOMEor its default
var- In aninstallaction the variables as specified in the hermit.tomlname- The name of theinstallaction
tag- The values of the detected tags as specified in tagsarchfor example might beaarch64
The helper function snippet allows you to reference the contents of a defined snippet.