debug-mode {{ "on" if cookiecutter.debug_mode == "True" else "off" }}
Setting it to debug_mode: true in your yaml does not work, you have to use debug_mode: "True". I am guessing this is because cookiecutter did not support boolean values when this template was created. Changing this to require a boolean may have unexpected implications for legacy templates - an alternative would be to change the default value in cookiecutter.json to "True" to hint that it's looking for a string.
debug-mode {{ "on" if cookiecutter.debug_mode == "True" else "off" }}
Setting it todebug_mode: true
in your yaml does not work, you have to usedebug_mode: "True"
. I am guessing this is because cookiecutter did not support boolean values when this template was created. Changing this to require a boolean may have unexpected implications for legacy templates - an alternative would be to change the default value in cookiecutter.json to "True" to hint that it's looking for a string.