Metadata-Version: 1.1
Name: yattag
Version: 0.9.2
Summary: Library for generating HTML or XML in a pythonic way. Can fill HTML forms with default values and errors. Pure python alternative to html templating languages.
Home-page: http://www.yattag.org
Author: Benjamin Le Forestier
Author-email: benjamin@leforestier.org
License: UNKNOWN
Description: Some examples:
        
        ( full tutorial on yattag.org_ )
        
        Basic example
        -------------
        
        Nested html tags, no need to close tags.
        
        .. code:: python
        
            from yattag import Doc
        
            doc, tag, text = Doc().tagtext()
        
            with tag('html'):
                with tag('body', id = 'hello'):
                    with tag('h1'):
                        text('Hello world!')
        
            print(doc.getvalue())
            
        Html form rendering example with default values
        -----------------------------------------------
        
        .. code:: python
        
            from yattag import Doc
        
            doc, tag, text = Doc(
                defaults = {'ingredient': ['chocolate', 'coffee']}
            ).tagtext()
        
            with tag('form', action = ""):
                with tag('label'):
                    text("Select one or more ingredients")
                with doc.select(name = 'ingredient', multiple = "multiple"):
                    for value, description in (
                        ("chocolate", "Dark chocolate"),
                        ("almonds", "Roasted almonds"),
                        ("honey", "Acacia honey"),
                        ("coffee", "Ethiopian coffee")
                    ):
                        with doc.option(value = value):
                            text(description) 
                doc.stag('input', type = "submit", value = "Validate")
        
            print(doc.getvalue())
            
        Full tutorial on yattag.org_
        
        .. _yattag.org: http://www.yattag.org
            
        
        
Keywords: html,template,templating,xml,document,form,rendering
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Environment :: Web Environment
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
