From a38b312b35d5268d89747a8c56b91a6ede4598c0 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 15 Apr 2007 00:49:13 +0200 Subject: [PATCH] [svn] added changelog to docs and updated missing version info for some filters --HG-- branch : trunk --- docs/generate.py | 5 ++++- docs/src/changelog.txt | 1 + docs/src/index.txt | 2 ++ jinja/filters.py | 6 ++++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 docs/src/changelog.txt diff --git a/docs/generate.py b/docs/generate.py index 76e027c..d6a4180 100755 --- a/docs/generate.py +++ b/docs/generate.py @@ -116,6 +116,8 @@ LIST_OF_FILTERS = generate_list_of_filters() 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('''\ `_ +- `Changelog `_ + There is also support via IRC on the ``#pocoo`` channel on `irc.freenode.net`. diff --git a/jinja/filters.py b/jinja/filters.py index c83ed6a..a6d0dd8 100644 --- a/jinja/filters.py +++ b/jinja/filters.py @@ -712,6 +712,8 @@ def do_batch(linecount, fill_with=None): def do_sum(): """ Sum up the given sequence of numbers. + + *new in Jinja 1.1* """ def wrapped(env, context, value): return sum(value) @@ -721,6 +723,8 @@ def do_sum(): def do_abs(): """ Return the absolute value of a number. + + *new in Jinja 1.1* """ def wrapped(env, context, value): return abs(value) @@ -745,6 +749,8 @@ def do_round(precision=0, method='common'): -> 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') -- 2.26.2