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

Add support for templates specifying dependencies on other templates #7

Closed brikis98 closed 8 years ago

brikis98 commented 8 years ago

This PR updates boilerplate so that a boilerplate.yml file can specify one or more dependencies on other templates. This allows you to create more complicated boilerplate templates from simpler pieces.

brikis98 commented 8 years ago

@josh-padnick This is ready for review. And... it's awesome. I'll show you how I'm using this in another PR soon :)

brikis98 commented 8 years ago

@josh-padnick Scratch that, don't merge yet. There is one key feature missing in this PR: the ability to namespace variables for the cases where multiple dependencies use the same variable name, but need different values. I'll come back to this a bit later today and fix it.

brikis98 commented 8 years ago

@josh-padnick OK, we now have support for handling duplicate variable names between dependencies by using the DEPENDENCY_NAME.VARIABLE_NAME syntax. Review away!

brikis98 commented 8 years ago

Merging this one in.

josh-padnick commented 8 years ago

Just getting to this PR from 23 days ago. :( I'll pass on reviewing unless there's anything in particular you'd like feedback on.