Skip to main content

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)

Uploaded Source

Built Distribution

shrubbery-0.1-py2.4.egg (6.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page