Currently the only way to set autoescape is either via a template directive, or globally via pongo2.SetAutoescape. There's no way to set it for individual template sets or before template execution via Options.
The request here is to expand the Options object to allow controlling the Autoescape parameter's default value prior to template execution.
Currently the only way to set autoescape is either via a template directive, or globally via
pongo2.SetAutoescape
. There's no way to set it for individual template sets or before template execution viaOptions
.The request here is to expand the Options object to allow controlling the Autoescape parameter's default value prior to template execution.