Commit Graph

3 Commits (6d0bfeedaf08c2747944bb7c065e37c14ca5d78a)

Author SHA1 Message Date
Dustin 6d0bfeedaf Add post-change hooks feature
After rendering a template, `tmpl` will now run any commands specified
in the `hooks` property of a template instruction.  Hooks can either be
"immediate," meaning they will run as soon as the new file is written,
or "deferred," and will run after all templates have been rendered.
Deferred hooks are deduplicated: if multiple templates specify the
exact same command, it will only be run once.  Hook commands can include
the `%s` placeholder, which will be replaced by the path of the rendered
file.
2024-01-11 22:27:59 -06:00
Dustin 47d138a9c6 Render templates to file and set permissions 2024-01-11 13:36:39 -06:00
Dustin bc1d8b187c Initial commit 2024-01-11 08:23:48 -06:00