templatetag_sugar.parser.Parser

Here are the examples of the python api templatetag_sugar.parser.Parser taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: django-templatetag-sugar Source File: register.py
Function: tag
def tag(register, syntax, name=None):
    def inner(func):
        register.tag(name or func.__name__, Parser(syntax, func))
        return func
    return inner