The current version supports conditionals inside files, but not about files.
That is, I can include or exclude blocks of text depending on the truthiness of a value. I cannot, however, create files only if a certain value is truthy.
This would be hugely helpful in at least one case: the template I'm working on will support multiple deployment options (raw JAR, AWS, debian package...). Each method needs different files to be present in different paths.
Currently, I can either include everything and ask developers to manually delete what's irrelevant, or include nothing and point them to a repo that contains the right files.
Ideally, they'd just answer a question (use AWS? [YES/no]) and everything would be set up.
The current version supports conditionals inside files, but not about files.
That is, I can include or exclude blocks of text depending on the truthiness of a value. I cannot, however, create files only if a certain value is truthy.
This would be hugely helpful in at least one case: the template I'm working on will support multiple deployment options (raw JAR, AWS, debian package...). Each method needs different files to be present in different paths.
Currently, I can either include everything and ask developers to manually delete what's irrelevant, or include nothing and point them to a repo that contains the right files.
Ideally, they'd just answer a question (
use AWS? [YES/no]) and everything would be set up.