Metadata-Version: 1.0
Name: pybars3-extensions
Version: 1.0.0
Summary: pybars3_extensions
Home-page: UNKNOWN
Author: Bogdan Mustiata
Author-email: bogdan.mustiata@gmail.com
License: BSD
Description: pybars3\_extensions
        ===================
        
        pybars3\_extensions library.
        
        This introduces ``#each``, ``#case`` and ``#default`` for building
        ``switch``/``case`` statements.
        
        Usage
        -----
        
        Template:
        
        .. code:: handlebars
        
            {{#each cool.items}}
            {{#switch this.type}}
            {{#case '1'}}MATCH: {{this}}{{/case}}
            {{#default}}NO MATCH{{/default}}
            {{/switch}}
            {{/each}}
        
        Python code:
        
        .. code:: py
        
            from pybars3_extensions import helpers
        
            # ...
        
            hbs = pybars.Compiler().compile(source=template)
            print(hbs(data, helpers=helpers))
        
        Installation
        ------------
        
        .. code:: sh
        
            pip install pybars3_extensions
        
Platform: UNKNOWN
