pystache
pystache copied to clipboard
Mustache in Python
There have been no commits in the last 3 years. Issues haven't been updated in a while. Pull requests haven't been merged or discussed despite them building successfully. Mailing list...
import pystache text = 'hey {{email|fallback:"[email protected]"}} ' # in a case test@gmail it works correctly render_data = {'email|fallback:"[email protected]"':'[email protected]'} json_data = pystache.render(text,render_data)
Please consider support the .html file extension
This is partly because [Tox](http://tox.testrun.org/latest/) dropped support for Python 2.4 in v1.4.
Tested with python 3.4 and 3.5 ``` Traceback (most recent call last): File "/nix/store/4fr5rgsizd5q72fr8lsixvb274awg6nk-python3-3.4.4/lib/python3.4/unittest/loader.py", line 323, in _find_tests module = self._get_module_from_name(name) File "/nix/store/4fr5rgsizd5q72fr8lsixvb274awg6nk-python3-3.4.4/lib/python3.4/unittest/loader.py", line 301, in _get_module_from_name __import__(name) File "/tmp/nix-build-python3.4-pystache-0.5.4.drv-0/pystache-0.5.4/test_pystache.py",...
[Line 52 in README](https://github.com/defunkt/pystache/blame/master/README.md#L52) points to an outdated link. I found this [Distribute](https://pypi.org/project/distribute/) but I am not sure that is helpful, as it is described as wrapper for `setup-tools`.
* migrate to github actions for CI, add conda recipe/workflow * fix document processing, update pandoc args and history * convert doctests and modules to py3 * convert packaging/setup.py to...
This project hasn't been updated since 2014 See this project instead: https://github.com/noahmorrison/chevron
Content for non- telepathic human.
For example `u"Hey {{#who}}{{is}}!{{/who}}"` Should return ``` { "required": [], "optional": ["who", "is", "who.is"] } ```