Closed paimoe closed 11 months ago
I'm pretty sure that your usecase is not what DebugUndefined is meant for - it's simply meant to be a way to quickly see the variable that's missing. Not to get something that's again to be used as a functional jinja template....
Description
When using DebugUndefined to make a partial template, the filters are not kept if a variable is not passed to the template. Similar-ish to #1871 and other DebugUndefined issues.
Replication
Expectation
I'm not sure 100% sure if this is the best way to do a partial template rendering, but was all I found on Stackoverflow and other places.
https://stackoverflow.com/questions/12994028/multiple-renders-of-jinja2-templates (old)
Environment:
Workaround
My current workaround is just a string replace like