Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Num If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad If BoolOpOr Call NameLoad NameLoad Str BoolOpAnd Call NameLoad NameLoad Str UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore BinOpAdd Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str If CompareEq NameLoad Str body Assign NameStore Num orelse If CompareEq NameLoad Str body Assign NameStore Num orelse Raise Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list Return Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list orelse Assign NameStore NameLoad Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str If BoolOpOr BoolOpAnd NameLoad UnaryOpNot NameLoad Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call NameLoad NameLoad Str body Assign NameStore NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad Call NameLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad Num Num Assign NameStore BoolOpOr BoolOpAnd NameLoad Str Str If CompareLt NameLoad NameLoad body Return BinOpMod Str TupleLoad NameLoad BoolOpOr BoolOpAnd CompareNotEq NameLoad Num Str Str orelse If CompareLt NameLoad BinOpMult NameLoad NameLoad body Return BinOpMod Str TupleLoad BinOpDiv NameLoad NameLoad NameLoad orelse If CompareLt NameLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad body Return BinOpMod Str TupleLoad BinOpDiv NameLoad BinOpMult NameLoad NameLoad NameLoad Return BinOpMod Str TupleLoad BinOpDiv NameLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore BinOpMult Str NameLoad Assign NameStore Call AttributeLoad BinOpAdd Str NameLoad attr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad Str body Expr Str If CompareLtE Call NameLoad NameLoad NameLoad body Return NameLoad orelse If NameLoad body Return BinOpAdd SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore BinOpAdd Call NameLoad NameLoad Num If CompareGt NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Import alias Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body TryExcept body Return Call NameLoad Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str Return BinOpMod Call NameLoad NameLoad BoolOpOr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpFloorDiv NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMult NameLoad NameLoad If CompareLt NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore BinOpAdd NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareEq Call NameLoad NameLoad NameLoad body Expr Yield NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore BinOpMult ListLoad NameLoad BinOpSub NameLoad Call NameLoad NameLoad Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Str body Expr Str If UnaryOpNot CompareIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad Str If CompareLt NameLoad Num body Raise Call NameLoad Str If CompareEq NameLoad Str body Return Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Return BinOpDiv Call NameLoad BinOpMult BinOpMult NameLoad Num NameLoad BinOpMult Num NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad keyword NameLoad NameLoad decorator_list NameLoad ClassDef bases NameLoad body Assign NameStore TupleLoad Assign NameStore Call NameLoad Call NameLoad Num Assign NameStore Call NameLoad Call NameLoad Num FunctionDef arguments args NameParam TupleStore NameStore NameStore defaults body Return Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return SubscriptLoad NameLoad Slice Num TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad
N/A N/A 
    jinja2.filters
    ~~~~~~~~~~~~~~

    Bundled jinja filters.

    :copyright: (c) 2010 by the Jinja Team.
    :license: BSD, see LICENSE for more details.
 N/A re N/A math random choice operator itemgetter itertools imap groupby jinja2.utils Markup escape pformat urlize soft_unicode jinja2.runtime Undefined jinja2.exceptions FilterArgumentError SecurityError N/A _word_re N/A N/A re compile \w+(?u) contextfilter N/A N/A f N/A N/A N/A Decorator for marking context dependent filters. The current
    :class:`Context` will be passed as first argument.
     N/A N/A f contextfilter True N/A f N/A evalcontextfilter N/A N/A f N/A N/A N/A Decorator for marking eval-context dependent filters.  An eval
    context object is passed as first argument.  For more information
    about the eval context, see :ref:`eval-context`.

    .. versionadded:: 2.4
     N/A N/A f evalcontextfilter True N/A f N/A environmentfilter N/A N/A f N/A N/A N/A Decorator for marking evironment dependent filters.  The current
    :class:`Environment` is passed to the filter as first argument.
     N/A N/A f environmentfilter True N/A f N/A do_forceescape N/A N/A value N/A N/A N/A Enforce HTML escaping.  This will probably double escape variables. N/A N/A hasattr value __html__ N/A N/A value N/A N/A value __html__ N/A N/A escape N/A unicode value N/A do_replace N/A N/A eval_ctx s old new count N/A None N/A N/A Return a copy of the value with all occurrences of a substring
    replaced with a new one. The first argument is the substring
    that should be replaced, the second is the replacement string.
    If the optional third argument ``count`` is given, only the first
    ``count`` occurrences are replaced:

    .. sourcecode:: jinja

        {{ "Hello World"|replace("Hello", "Goodbye") }}
            -> Goodbye World

        {{ "aaaaargh"|replace("a", "d'oh, ", 2) }}
            -> d'oh, d'oh, aaargh
     N/A N/A count None N/A N/A count -1 N/A N/A N/A eval_ctx autoescape N/A N/A N/A N/A N/A unicode s replace N/A unicode old N/A unicode new count N/A N/A N/A hasattr old __html__ N/A N/A hasattr new __html__ N/A N/A hasattr s __html__ N/A N/A s N/A escape s N/A N/A s N/A soft_unicode s N/A N/A N/A s replace N/A soft_unicode old N/A soft_unicode new count N/A evalcontextfilter do_upper N/A N/A s N/A N/A N/A Convert a value to uppercase. N/A N/A N/A N/A soft_unicode s upper N/A do_lower N/A N/A s N/A N/A N/A Convert a value to lowercase. N/A N/A N/A N/A soft_unicode s lower N/A do_xmlattr N/A N/A _eval_ctx d autospace N/A True N/A N/A Create an SGML/XML attribute string based on the items in a dict.
    All values that are neither `none` nor `undefined` are automatically
    escaped:

    .. sourcecode:: html+jinja

        <ul{{ {'class': 'my_list', 'missing': none,
                'id': 'list-%d'|format(variable)}|xmlattr }}>
        ...
        </ul>

    Results in something like this:

    .. sourcecode:: html

        <ul class="my_list" id="list-42">
        ...
        </ul>

    As you can see it automatically prepends a space in front of the item
    if the filter returned something unless the second parameter is false.
     N/A rv N/A N/A join N/A N/A %s="%s" N/A N/A escape key N/A escape value N/A N/A key value N/A N/A d iteritems N/A N/A value None N/A N/A isinstance value Undefined N/A N/A autospace rv N/A N/A rv N/A rv N/A N/A _eval_ctx autoescape N/A N/A rv N/A Markup rv N/A rv N/A evalcontextfilter do_capitalize N/A N/A s N/A N/A N/A Capitalize a value. The first character will be uppercase, all others
    lowercase.
     N/A N/A N/A N/A soft_unicode s capitalize N/A do_title N/A N/A s N/A N/A N/A Return a titlecased version of the value. I.e. words will start with
    uppercase letters, all remaining characters are lowercase.
     N/A N/A N/A N/A soft_unicode s title N/A do_dictsort N/A N/A value case_sensitive by N/A False key N/A N/A Sort a dict and yield (key, value) pairs. Because python dicts are
    unsorted you may want to use this function to order them by either
    key or value:

    .. sourcecode:: jinja

        {% for item in mydict|dictsort %}
            sort the dict by key, case insensitive

        {% for item in mydict|dicsort(true) %}
            sort the dict by key, case sensitive

        {% for item in mydict|dictsort(false, 'value') %}
            sort the dict by key, case insensitive, sorted
            normally and ordered by value.
     N/A N/A by key N/A N/A pos 0 N/A N/A N/A by value N/A N/A pos 1 N/A N/A N/A FilterArgumentError You can only sort by either "key" or "value" sort_func N/A N/A item N/A N/A N/A value N/A item N/A pos N/A N/A N/A isinstance value basestring N/A case_sensitive N/A N/A value N/A N/A value lower N/A value N/A N/A N/A sorted N/A N/A value items key sort_func N/A do_sort N/A N/A value case_sensitive N/A False N/A N/A Sort an iterable.  If the iterable is made of strings the second
    parameter can be used to control the case sensitiveness of the
    comparison which is disabled by default.

    .. sourcecode:: jinja

        {% for item in iterable|sort %}
            ...
        {% endfor %}
     N/A N/A case_sensitive N/A sort_func N/A N/A item N/A N/A N/A N/A isinstance item basestring N/A N/A item N/A N/A item lower N/A item N/A N/A N/A sort_func None N/A N/A sorted seq key sort_func N/A do_default N/A N/A value default_value boolean N/A False N/A N/A If the value is undefined it will return the passed default value,
    otherwise the value of the variable:

    .. sourcecode:: jinja

        {{ my_variable|default('my_variable is not defined') }}

    This will output the value of ``my_variable`` if the variable was
    defined, otherwise ``'my_variable is not defined'``. If you want
    to use default with variables that evaluate to false you have to
    set the second parameter to `true`:

    .. sourcecode:: jinja

        {{ ''|default('the string was empty', true) }}
     N/A N/A N/A boolean N/A value N/A isinstance value Undefined N/A N/A default_value N/A value N/A do_join N/A N/A eval_ctx value d N/A N/A N/A Return a string which is the concatenation of the strings in the
    sequence. The separator between elements is an empty string per
    default, you can define it with the optional parameter:

    .. sourcecode:: jinja

        {{ [1, 2, 3]|join('|') }}
            -> 1|2|3

        {{ [1, 2, 3]|join }}
            -> 123
     N/A N/A N/A eval_ctx autoescape N/A N/A N/A N/A N/A unicode d join N/A imap unicode value N/A N/A N/A hasattr d __html__ N/A N/A value N/A list value N/A do_escape False N/A N/A idx item N/A enumerate value N/A N/A N/A hasattr item __html__ N/A N/A do_escape True N/A N/A N/A value N/A idx N/A unicode item N/A do_escape N/A N/A d N/A escape d N/A N/A d N/A unicode d N/A N/A N/A d join value N/A N/A N/A N/A soft_unicode d join N/A imap soft_unicode value N/A evalcontextfilter do_center N/A N/A value width N/A 80 N/A N/A Centers the value in a field of a given width. N/A N/A N/A N/A unicode value center width N/A do_first N/A N/A environment seq N/A N/A N/A Return the first item of a sequence. N/A N/A N/A N/A N/A N/A iter seq next N/A N/A N/A StopIteration N/A N/A N/A N/A environment undefined No first item, sequence was empty. N/A environmentfilter do_last N/A N/A environment seq N/A N/A N/A Return the last item of a sequence. N/A N/A N/A N/A N/A N/A iter N/A reversed seq next N/A N/A N/A StopIteration N/A N/A N/A N/A environment undefined No last item, sequence was empty. N/A environmentfilter do_random N/A N/A environment seq N/A N/A N/A Return a random item from the sequence. N/A N/A N/A N/A choice seq N/A N/A N/A IndexError N/A N/A N/A N/A environment undefined No random item, sequence was empty. N/A environmentfilter do_filesizeformat N/A N/A value binary N/A False N/A N/A Format the value like a 'human-readable' file size (i.e. 13 KB,
    4.1 MB, 102 bytes, etc).  Per default decimal prefixes are used (mega,
    giga, etc.), if the second parameter is set to `True` the binary
    prefixes are used (mebi, gibi).
     N/A bytes N/A float value N/A base N/A N/A binary 1024 1000 N/A middle N/A N/A binary i N/A N/A bytes base N/A N/A N/A %d Byte%s N/A bytes N/A N/A N/A bytes 1 s N/A N/A N/A bytes N/A base base N/A N/A N/A %.1f K%sB N/A N/A bytes base middle N/A N/A N/A bytes N/A N/A base base base N/A N/A N/A %.1f M%sB N/A N/A bytes N/A base base middle N/A N/A %.1f G%sB N/A N/A bytes N/A N/A base base base middle N/A do_pprint N/A N/A value verbose N/A False N/A N/A Pretty print a variable. Useful for debugging.

    With Jinja 1.2 onwards you can pass it a parameter.  If this parameter
    is truthy the output will be more verbose (this requires `pretty`)
     N/A N/A pformat value verbose verbose N/A do_urlize N/A N/A eval_ctx value trim_url_limit nofollow N/A None False N/A N/A Converts URLs in plain text into clickable links.

    If you pass the filter an additional integer it will shorten the urls
    to that number. Also a third argument exists that makes the urls
    "nofollow":

    .. sourcecode:: jinja

        {{ mytext|urlize(40, true) }}
            links are shortened to 40 chars and defined with rel="nofollow"
     N/A rv N/A urlize value trim_url_limit nofollow N/A N/A eval_ctx autoescape N/A N/A rv N/A Markup rv N/A rv N/A evalcontextfilter do_indent N/A N/A s width indentfirst N/A 4 False N/A N/A Return a copy of the passed string, each line indented by
    4 spaces. The first line is not indented. If you want to
    change the number of spaces or indent the first line too
    you can pass additional parameters to the filter:

    .. sourcecode:: jinja

        {{ mytext|indent(2, true) }}
            indent by two spaces and indent the first line too.
     N/A indention N/A width N/A rv N/A N/A N/A indention join N/A N/A s splitlines N/A indentfirst N/A N/A rv N/A indention rv N/A rv N/A do_truncate N/A N/A s length killwords end N/A 255 False ... N/A N/A Return a truncated copy of the string. The length is specified
    with the first parameter which defaults to ``255``. If the second
    parameter is ``true`` the filter will cut the text at length. Otherwise
    it will try to save the last word. If the text was in fact
    truncated it will append an ellipsis sign (``"..."``). If you want a
    different ellipsis sign than ``"..."`` you can specify it using the
    third parameter.

    .. sourcecode jinja::

        {{ mytext|truncate(300, false, '&raquo;') }}
            truncate mytext to 300 chars, don't split up words, use a
            right pointing double arrow as ellipsis sign.
     N/A N/A N/A len s length N/A N/A s N/A N/A killwords N/A N/A N/A N/A s N/A length end N/A words N/A N/A s split N/A result N/A N/A m 0 N/A word words N/A N/A m N/A N/A len word 1 N/A N/A m length N/A N/A N/A N/A N/A result append word N/A N/A N/A result append end N/A N/A N/A join result N/A do_wordwrap N/A N/A s width break_long_words N/A 79 True N/A N/A 
    Return a copy of the string passed to the filter wrapped after
    ``79`` characters.  You can override this default using the first
    parameter.  If you set the second parameter to `false` Jinja will not
    split words apart if they are longer than `width`.
     N/A textwrap N/A N/A N/A join N/A N/A textwrap wrap s width width expand_tabs False replace_whitespace False break_long_words break_long_words N/A do_wordcount N/A N/A s N/A N/A N/A Count the words in that string. N/A N/A len N/A N/A _word_re findall s N/A do_int N/A N/A value default N/A 0 N/A N/A Convert the value into an integer. If the
    conversion doesn't work it will return ``0``. You can
    override this default using the first parameter.
     N/A N/A N/A N/A int value N/A N/A N/A N/A TypeError ValueError N/A N/A N/A N/A N/A int N/A float value N/A N/A N/A N/A TypeError ValueError N/A N/A default N/A do_float N/A N/A value default N/A 0.0 N/A N/A Convert the value into a floating point number. If the
    conversion doesn't work it will return ``0.0``. You can
    override this default using the first parameter.
     N/A N/A N/A N/A float value N/A N/A N/A N/A TypeError ValueError N/A N/A default N/A do_format N/A N/A value N/A args kwargs N/A N/A 
    Apply python string formatting on an object:

    .. sourcecode:: jinja

        {{ "%s - %s"|format("Hello?", "Foo!") }}
            -> Hello? - Foo!
     N/A N/A args kwargs N/A N/A N/A FilterArgumentError can't handle positional and keyword arguments at the same time N/A N/A N/A soft_unicode value N/A kwargs args N/A do_trim N/A N/A value N/A N/A N/A Strip leading and trailing whitespace. N/A N/A N/A N/A soft_unicode value strip N/A do_striptags N/A N/A value N/A N/A N/A Strip SGML/XML tags and replace adjacent whitespace by one space.
     N/A N/A hasattr value __html__ N/A N/A value N/A N/A value __html__ N/A N/A N/A N/A Markup N/A unicode value striptags N/A do_slice N/A N/A value slices fill_with N/A None N/A N/A Slice an iterator and return a list of lists containing
    those items. Useful if you want to create a div containing
    three ul tags that represent columns:

    .. sourcecode:: html+jinja

        <div class="columwrapper">
          {%- for column in items|slice(3) %}
            <ul class="column-{{ loop.index }}">
            {%- for item in column %}
              <li>{{ item }}</li>
            {%- endfor %}
            </ul>
          {%- endfor %}
        </div>

    If you pass it a second argument it's used to fill missing
    values on the last iteration.
     N/A seq N/A list value N/A length N/A len seq N/A items_per_slice N/A length slices N/A slices_with_extra N/A length slices N/A offset 0 N/A slice_number N/A xrange slices N/A N/A start N/A offset N/A slice_number items_per_slice N/A N/A slice_number slices_with_extra N/A N/A offset 1 N/A end N/A offset N/A N/A slice_number 1 items_per_slice N/A tmp N/A seq N/A start end N/A N/A N/A fill_with None N/A slice_number slices_with_extra N/A N/A N/A N/A tmp append fill_with N/A N/A tmp N/A do_batch N/A N/A value linecount fill_with N/A None N/A N/A 
    A filter that batches items. It works pretty much like `slice`
    just the other way round. It returns a list of lists with the
    given number of items. If you provide a second parameter this
    is used to fill missing items. See this example:

    .. sourcecode:: html+jinja

        <table>
        {%- for row in items|batch(3, '&nbsp;') %}
          <tr>
          {%- for column in row %}
            <td>{{ column }}</td>
          {%- endfor %}
          </tr>
        {%- endfor %}
        </table>
     N/A result N/A N/A tmp N/A N/A item value N/A N/A N/A N/A len tmp linecount N/A N/A N/A tmp N/A tmp N/A N/A N/A N/A tmp append item N/A tmp N/A N/A N/A N/A fill_with None N/A N/A len tmp linecount N/A N/A tmp N/A N/A fill_with N/A linecount N/A len tmp N/A N/A tmp N/A do_round N/A N/A value precision method N/A 0 common N/A N/A Round the number to a given precision. The first
    parameter specifies the precision (default is ``0``), the
    second the rounding method:

    - ``'common'`` rounds either up or down
    - ``'ceil'`` always rounds up
    - ``'floor'`` always rounds down

    If you don't specify a method ``'common'`` is used.

    .. sourcecode:: jinja

        {{ 42.55|round }}
            -> 43.0
        {{ 42.55|round(1, 'floor') }}
            -> 42.5

    Note that even if rounded to 0 precision, a float is returned.  If
    you need a real integer, pipe it through `int`:

    .. sourcecode:: jinja

        {{ 42.55|round|int }}
            -> 43
     N/A N/A N/A method N/A common ceil floor N/A N/A N/A FilterArgumentError method must be common, ceil or floor N/A N/A precision 0 N/A N/A N/A FilterArgumentError precision must be a postive integer or zero. N/A N/A method common N/A N/A N/A round value precision N/A func N/A getattr math method N/A precision N/A N/A N/A N/A func N/A N/A value 10 precision N/A 10 precision N/A N/A N/A func value N/A do_sort N/A N/A value reverse N/A False N/A N/A Sort a sequence. Per default it sorts ascending, if you pass it
    true as first argument it will reverse the sorting.
     N/A N/A sorted value reverse reverse N/A do_groupby N/A N/A environment value attribute N/A N/A N/A Group a sequence of objects by a common attribute.

    If you for example have a list of dicts or objects that represent persons
    with `gender`, `first_name` and `last_name` attributes and you want to
    group all users by genders you can do something like the following
    snippet:

    .. sourcecode:: html+jinja

        <ul>
        {% for group in persons|groupby('gender') %}
            <li>{{ group.grouper }}<ul>
            {% for person in group.list %}
                <li>{{ person.first_name }} {{ person.last_name }}</li>
            {% endfor %}</ul></li>
        {% endfor %}
        </ul>

    Additionally it's possible to use tuple unpacking for the grouper and
    list:

    .. sourcecode:: html+jinja

        <ul>
        {% for grouper, list in persons|groupby('gender') %}
            ...
        {% endfor %}
        </ul>

    As you can see the item we're grouping by is stored in the `grouper`
    attribute and the `list` contains all the objects that have this grouper
    in common.
     N/A expr N/A N/A N/A x N/A N/A N/A environment getitem x attribute N/A N/A sorted N/A map _GroupTuple N/A groupby N/A sorted value key expr expr N/A environmentfilter _GroupTuple N/A tuple N/A N/A __slots__ N/A N/A grouper N/A property N/A itemgetter 0 N/A list N/A property N/A itemgetter 1 __new__ N/A N/A cls N/A key value N/A N/A N/A N/A N/A tuple __new__ cls N/A key N/A list value N/A N/A do_list N/A N/A value N/A N/A N/A Convert the value into a list.  If it was a string the returned list
    will be a list of characters.
     N/A N/A list value N/A do_mark_safe N/A N/A value N/A N/A N/A Mark the value as safe which means that in an environment with automatic
    escaping enabled this variable will not be escaped.
     N/A N/A Markup value N/A do_mark_unsafe N/A N/A value N/A N/A N/A Mark a value as unsafe.  This is the reverse operation for :func:`safe`. N/A N/A unicode value N/A do_reverse N/A N/A value N/A N/A N/A Reverse the object or return an iterator the iterates over it the other
    way round.
     N/A N/A isinstance value basestring N/A N/A N/A value N/A -1 N/A N/A N/A N/A reversed value N/A N/A N/A TypeError N/A N/A N/A N/A rv N/A list value N/A N/A N/A rv reverse N/A rv N/A N/A N/A TypeError N/A N/A N/A FilterArgumentError argument must be iterable N/A do_attr N/A N/A environment obj name N/A N/A N/A Get an attribute of an object.  ``foo|attr("bar")`` works like
    ``foo["bar"]`` just that always an attribute is returned and items are not
    looked up.

    See :ref:`Notes on subscriptions <notes-on-subscriptions>` for more details.
     N/A N/A N/A name N/A str name N/A N/A N/A UnicodeError N/A N/A N/A N/A N/A N/A value N/A getattr obj name N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A environment sandboxed N/A N/A N/A environment is_safe_attribute obj name value N/A N/A N/A N/A environment unsafe_undefined obj name N/A value N/A N/A N/A environment undefined obj obj name name N/A environmentfilter N/A FILTERS N/A attr replace upper lower escape e forceescape capitalize title default d join count dictsort sort length reverse center indent title capitalize first last random filesizeformat pprint truncate wordwrap wordcount int float string list urlize format trim striptags slice batch sum abs round sort groupby safe xmlattr do_attr do_replace do_upper do_lower escape escape do_forceescape do_capitalize do_title do_default do_default do_join len do_dictsort do_sort len do_reverse do_center do_indent do_title do_capitalize do_first do_last do_random do_filesizeformat do_pprint do_truncate do_wordwrap do_wordcount do_int do_float soft_unicode do_list do_urlize do_format do_trim do_striptags do_slice do_batch sum abs do_round do_sort do_groupby do_mark_safe do_xmlattr