boilr icon indicating copy to clipboard operation
boilr copied to clipboard

Conditional creation of directories

Open iancmcc opened this issue 8 years ago • 1 comments

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.

iancmcc avatar Jul 13 '17 21:07 iancmcc

In addition to this question, I am also very interested in conditionally creating files ... ;-)

stefanwalther avatar Sep 22 '17 18:09 stefanwalther