pybars3 icon indicating copy to clipboard operation
pybars3 copied to clipboard

`noEscape` option

Open silverwind opened this issue 5 years ago • 1 comments

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 avatar Oct 07 '20 23:10 silverwind

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

pybars._compiler.escape = lambda s: s

silverwind avatar Sep 15 '23 10:09 silverwind