You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overriding jinja's variable_start_string and variable_end_string when using _jinja2_env_vars in cookiecutter.json gives an error NonTemplatedInputDirException.
The reason is that the variable start & end strings are hardcoded when cookiecutter is looking for the template directory (see here). This means that cookiecutter always looks for {{ and }} when looking for a template directory, which should actually be variable_start/end_string in the case of overriding them.
This is the same behavior as this closed issue #1736 in which the root problem was not resolved.
I have made a PR addressing this issue, and am very open to feedback #1963
I'm running into this same issue. It would be very useful for using cookiecutter with React projects where {{ can possibly show up in many places. Thanks @sacha-c for looking into it!
Description:
Overriding jinja's
variable_start_string
andvariable_end_string
when using_jinja2_env_vars
in cookiecutter.json gives an errorNonTemplatedInputDirException
.The reason is that the variable start & end strings are hardcoded when cookiecutter is looking for the template directory (see here). This means that cookiecutter always looks for
{{
and}}
when looking for a template directory, which should actually bevariable_start/end_string
in the case of overriding them.This is the same behavior as this closed issue #1736 in which the root problem was not resolved.
I have made a PR addressing this issue, and am very open to feedback #1963
What I've run:
in a project with cookiecutter.json
The text was updated successfully, but these errors were encountered: