LIST_OF_TESTS = generate_list_of_tests()
LIST_OF_LOADERS = generate_list_of_loaders()
ENVIRONMENT_DOC = generate_environment_doc()
+CHANGELOG = file(os.path.join(os.path.dirname(__file__), os.pardir, 'CHANGES'))\
+ .read().decode('utf-8')
FULL_TEMPLATE = e.from_string('''\
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
data = data.replace('[[list_of_filters]]', LIST_OF_FILTERS)\
.replace('[[list_of_tests]]', LIST_OF_TESTS)\
.replace('[[list_of_loaders]]', LIST_OF_LOADERS)\
- .replace('[[environment_doc]]', ENVIRONMENT_DOC)
+ .replace('[[environment_doc]]', ENVIRONMENT_DOC)\
+ .replace('[[changelog]]', CHANGELOG)
parts = publish_parts(
data,
writer=writer,
- `Designer Recipies <recipies.txt>`_
+- `Changelog <changelog.txt>`_
+
There is also support via IRC on the ``#pocoo`` channel on `irc.freenode.net`.
def do_sum():
"""
Sum up the given sequence of numbers.
+
+ *new in Jinja 1.1*
"""
def wrapped(env, context, value):
return sum(value)
def do_abs():
"""
Return the absolute value of a number.
+
+ *new in Jinja 1.1*
"""
def wrapped(env, context, value):
return abs(value)
-> 43
{{ 42.55|round(1, 'floor') }}
-> 42.5
+
+ *new in Jinja 1.1*
"""
if not method in ('common', 'ceil', 'floor'):
raise FilterArgumentError('method must be common, ceil or floor')