mirror of
https://github.com/kennethreitz-archive/pystache.git
synced 2026-06-05 23:40:16 +00:00
1.0 KiB
1.0 KiB
Pystache
Inspired by ctemplate and et, Mustache is a framework-agnostic way to render logic-free views.
As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language."
Pystache is a Python implementation of Mustache. It has been tested with Python 2.6.1.
Documentation
For now check out the ctemplate or Mustache docs.
Tests
Want to run the tests? nose works great!
easy_install nose
cd pystache
nosetests
Author
context = { 'author': 'Chris Wanstrath', 'email': 'chris@ozmm.org' }
Pystache.render("{{author}} :: {{email}}", context)