gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
157 stars 12 forks source link

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

Open jon-ward-unmind opened 2 months ago

jon-ward-unmind commented 2 months ago

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.

brikis98 commented 2 months ago

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.

staticaland commented 2 weeks ago

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