Metadata-Version: 1.0
Name: shrubbery
Version: 0.1.1
Summary: Simple template engine to convert JSON to HTML/XML
Home-page: http://taoetc.org/46
Author: Roberto De Almeida
Author-email: roberto@dealmeida.net
License: MIT
Download-URL: http://cheeseshop.python.org/packages/source/s/shrubbery/shrubbery-0.1.1.tar.gz
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. Here's a simple template::
        
        >>> from shrubbery.shrubbery import Template
        >>> template = "<ul><li>{todo}</li></ul>"
        
        We can pass a single value as the ``todo`` expression::
        
        >>> print Template(template, {"todo": "nothing"})
        <ul><li>nothing</li></ul>
        
        But if we pass a list instead, the node is repeated as necessary::
        
        >>> print Template(template, {"todo": ["one", "two", "three"]})
        <ul><li>one</li><li>two</li><li>three</li></ul>
        
        
Keywords: json template html xml
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Text Processing :: Markup
