HubSpot / jinjava

Jinja template engine for Java
Apache License 2.0
690 stars 168 forks source link

Fix eager execution handling of `{% print foo|render %}` #1184

Open jasmith-hs opened 4 months ago

jasmith-hs commented 4 months ago

The |render filter intends to perform nested interpretation, but if there's some aspect of the string input that can't be fully resolved, it will get deferred, but the EagerPrintTag will then wrap the output in {% raw %} tags as it doesn't realise that the output wasn't able to be fully rendered.