pongo2 icon indicating copy to clipboard operation
pongo2 copied to clipboard

How set TEMPLATE_STRING_IF_INVALID

Open iyaozhen opened this issue 2 years ago • 1 comments

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

iyaozhen avatar Jul 06 '22 08:07 iyaozhen

That's a feature not yet supported. I'll add it to the withlist.

flosch avatar Feb 01 '23 15:02 flosch