Open iancmcc opened 7 years ago
Is there a way to conditionally create a directory, based on a parameter? For example:
. ├── project.json └── template └── LICENSE ├── README.md └── {{if eq ConditionalDir "conditional"}}
With a project.json of:
{ "ConditionalDir": false }
This of course wouldn't work, being an invalid template, but is there a way? I have a Go package I often don't want to include.
In addition to this question, I am also very interested in conditionally creating files ... ;-)
Is there a way to conditionally create a directory, based on a parameter? For example:
With a project.json of:
This of course wouldn't work, being an invalid template, but is there a way? I have a Go package I often don't want to include.