Simple template engine to convert JSON to HTML/XML
Project description
A simple template engine designed to convert JSON to HTML or XML. Templates hold no logic whatsoever, with nodes being repeated as needed by the replacement data:
>>> from shrubbery import Template >>> template = "<ul><li>{todo}</li></ul>"
>>> print Template(template, {"todo": "nothing"}) <ul><li>nothing</li></ul>
>>> print Template(template, {"todo": ["one", "two", "three"]}) <ul><li>one</li><li>two</li><li>three</li></ul>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shrubbery-0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
shrubbery-0.1-py2.4.egg
(6.4 kB
view hashes)