the argument sequence(s).
Functions may be registered with native_tags or can be builtins or from the operator module
If more than one sequence is given, the function is called with an argument list consisting of the corresponding item of each sequence, substituting None for missing values when not all sequences have the same length. If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).
Syntax:
{% map [function] [sequence] %}
{% map [function] [item1 item2 ...] %}
For example:
{% map sha1 hello world %}
calculates:
[sha1(hello), sha1(world)]
This is a function tag.
from left to right, so as to reduce the sequence to a single value.
Functions may be registered with native_tags or can be builtins or from the operator module
Syntax:
{% reduce [function] [sequence] %}
{% reduce [function] [item1 item2 ...] %}
For example:
{% reduce add 1 2 3 4 5 %}
calculates:
((((1+2)+3)+4)+5) = 15
This is a function tag.