Merge "Add min filter to Jinja2"
This commit is contained in:
commit
122e57ea07
|
@ -132,6 +132,7 @@ class JinjaUtils(object):
|
||||||
|
|
||||||
# Do not print type for bools "!!bool" on output
|
# Do not print type for bools "!!bool" on output
|
||||||
j2env.filters['bool'] = TypeUtils.str_to_bool
|
j2env.filters['bool'] = TypeUtils.str_to_bool
|
||||||
|
j2env.filters['min'] = min
|
||||||
|
|
||||||
# Add a "raise" keyword for raising exceptions from within jinja
|
# Add a "raise" keyword for raising exceptions from within jinja
|
||||||
def jinja_raise(message):
|
def jinja_raise(message):
|
||||||
|
|
Loading…
Reference in New Issue