wbond / pybars3

Handlebars.js template support for Python 3 and 2
GNU Lesser General Public License v3.0
179 stars 46 forks source link

`noEscape` option #71

Open silverwind opened 4 years ago

silverwind commented 4 years ago

For cases where one does not generate HTML, handlebars.js provides a useful noEscape that disables escaping in double-curly blocks. I'd love to have this option in this module too.

silverwind commented 1 year ago

FWIW, one can monkey-patch the module to eliminate the HTML escaping:

pybars._compiler.escape = lambda s: s