Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noEscape option #71

Open
silverwind opened this issue Oct 7, 2020 · 1 comment
Open

noEscape option #71

silverwind opened this issue Oct 7, 2020 · 1 comment

Comments

@silverwind
Copy link

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
Copy link
Author

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

pybars._compiler.escape = lambda s: s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant