gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
183 stars 16 forks source link

Allow variables to use Go templating syntax #34

Closed brikis98 closed 7 years ago

brikis98 commented 7 years ago

This PR updates boilerplate with experimental support for allowing variables to use Go templating syntax. This allows, for example, for one variable in Boilerplate to reference another:

variables:
  - name: Foo
    default: foo

  - name: Bar
    default "{{ .Foo }}-bar"  
brikis98 commented 7 years ago

Merging now so I can test this out with the reference architecture. Feedback welcome!