boilerplate
boilerplate copied to clipboard
Use a file extension for templates that is removed from the rendered file
I'd like to be able to specify a file extension for my templates that will be removed from the rendered files in the output directory. For example, main.tf.tmpl would be rendered to main.tf.
This would allow me to see at a glance whether a file is a template or not, and also avoid having to configure linting tools to ignore specific files or directories.
Oh, interesting. More generally, I think a rename feature that supports file paths and patterns might be handy. A PR to add something along those lines is very welcome.
This sounds similar to gomplate and its --output-map.