Skip to content

Feature proposal: support custom string escaping#107

Open
taylorjacklespriggs wants to merge 2 commits intonoahmorrison:mainfrom
taylorjacklespriggs:support-custom-escaping
Open

Feature proposal: support custom string escaping#107
taylorjacklespriggs wants to merge 2 commits intonoahmorrison:mainfrom
taylorjacklespriggs:support-custom-escaping

Conversation

@taylorjacklespriggs
Copy link

Supports custom string escaping. Ex.

chevron.render(template="{{test}}", data={"test": '"'}, escape=lambda s: s.replace('"', "???")) == "???"

This feature is available in pystache which is no longer maintained.

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

Successfully merging this pull request may close these issues.

2 participants