boilerplate icon indicating copy to clipboard operation
boilerplate copied to clipboard

Use a file extension for templates that is removed from the rendered file

Open jon-ward-unmind opened this issue 1 year ago • 2 comments

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.

jon-ward-unmind avatar Apr 10 '24 08:04 jon-ward-unmind

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.

brikis98 avatar Apr 10 '24 14:04 brikis98

This sounds similar to gomplate and its --output-map.

staticaland avatar Jun 12 '24 12:06 staticaland