I recently turned on auto-escaping in Freemarker and change my
Other than pre-processing templates in a custom
TemplateLoader (which wraps another
TemplateLoader and filters the
Reader returned by it), there's no solution for this currently. Macros won't help either, because
#outputformat doesn't have runtime effect. It just associates sections of the FTL source code with an output format.