This PR updates boilerplate so that you can use Go template syntax and boilerplate variables in the names of files and folders.
This is very handy in cases where the paths are determined dynamically. For example, if you were using boilerplate to generate a Java project, your template folder could contain the path com/{{.PackageName}}/MyFactory.java. If you run boilerplate against this template folder and enter
"gruntwork" as the PackageName, you'd end up with the file com/gruntwork/MyFactory.java.
This PR updates
boilerplate
so that you can use Go template syntax and boilerplate variables in the names of files and folders.This is very handy in cases where the paths are determined dynamically. For example, if you were using
boilerplate
to generate a Java project, your template folder could contain the pathcom/{{.PackageName}}/MyFactory.java
. If you runboilerplate
against this template folder and enter "gruntwork" as thePackageName
, you'd end up with the filecom/gruntwork/MyFactory.java
.