Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Mark a callable as a `jinja filter`_.

_`jinja filter`: http://jinja.pocoo.org/2/documentation/api#custom-filters

        def jinjafilter(function):
    '''
    Mark a callable as a `jinja filter`_.

    _`jinja filter`: http://jinja.pocoo.org/2/documentation/api#custom-filters

    '''

    function.is_jinja_filter = True
    return function
        


src/c/h/chouwa-0.2.0/chouwa/defaultglobals.py   chouwa(Download)
from django.utils.dateformat import format
 
from chouwa.decorators import jinjaglobal, jinjafilter
 
@jinjaglobal