Michael Joseph
Michael Joseph
@huogerac you could write a complex template that used Jinja to conditionally include certain content based on context values: https://github.com/michaeljoseph/ccc/blob/master/%7B%7Bcookiecutter.repo_name%7D%7D/requirements.txt#L3. You could also run `cookiecutter` multiple times with different templates,...
Adding the option to _append_ generated content to a configurable list of filepaths may be a useful core feature to enable support for this?
I think this issue should move to https://github.com/cookiecutter/whichcraft ?
We can also use [if-expressions](https://jinja.palletsprojects.com/en/2.11.x/templates/#if-expression) ```bash $ cat conditional/cookiecutter.json; tree conditional; cookiecutter -f --no-input conditional; tree sceletor { "project_name": "sceletor", "generate_this": "y" } conditional ├── cookiecutter.json └── {{cookiecutter.project_name}} └── {{\...
#10 is the oldest and now contains enough info for implementation. Closing.
@retr0h, yeah looks like there was some discussion in #10, but nothing's come out of it. Re-opening.
Nice catch @pjbull! We look forward to your PR 😃
@fschulze #89 fixes this.
#89 fixes this.
Hi @htgoebel, I think #89 answers some of your questions...