Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional creation of directories #56

Open
iancmcc opened this issue Jul 13, 2017 · 1 comment
Open

Conditional creation of directories #56

iancmcc opened this issue Jul 13, 2017 · 1 comment

Comments

@iancmcc
Copy link
Contributor

iancmcc commented Jul 13, 2017

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.

@stefanwalther
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants