noahmorrison / chevron

A Python implementation of mustache
MIT License
505 stars 55 forks source link

[Feature] Add the ability to keep unknown tags #94

Closed Dylan-Brotherston closed 3 years ago

Dylan-Brotherston commented 3 years ago

Add a new option keep (default: False) to chevron.renderer.render() that allows for unknown tags to be kept in the returned string for later processing, eg: eval().

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.006%) to 99.209% when pulling 410a9c101492099ae3d32a313c162f9f340f8ff7 on Dylan-Brotherston:main into 90413a2dd56e06e1a493aa703907febe43966ca3 on noahmorrison:main.

noahmorrison commented 3 years ago

Seems like a nice feature, would you mind adding some unit tests for this? Take a look at the test_spec.py file and let me know if you need any help.

noahmorrison commented 3 years ago

LGTM, Thanks for adding those!

I really do want to cleanup the parameter passing at some point, but that's not necessarily this PR's fault

alexberazouski commented 2 years ago

Hey @noahmorrison . This seems like not yet released feature. Would you mind to make one please?