From: Armin Ronacher Date: Sat, 14 Apr 2007 22:49:13 +0000 (+0200) Subject: [svn] added changelog to docs and updated missing version info for some filters X-Git-Tag: 2.0rc1~357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a38b312b35d5268d89747a8c56b91a6ede4598c0;p=thirdparty%2Fjinja.git [svn] added changelog to docs and updated missing version info for some filters --HG-- branch : trunk --- diff --git a/docs/generate.py b/docs/generate.py index 76e027c7..d6a41805 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 c83ed6ab..a6d0dd8e 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')