pongo2
pongo2 copied to clipboard
How set TEMPLATE_STRING_IF_INVALID
My tpl is "t {{no_value}}"
and not set no_value
in context, it return "t "
, now.
If a variable that doesn’t exist, I hope the template system will insert the raw token. e.g. "t {{no_value}}"
. It is useful for debug.
https://django.readthedocs.io/en/1.7.x/ref/settings.html#std:setting-TEMPLATE_STRING_IF_INVALID
That's a feature not yet supported. I'll add it to the withlist.