[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 76e027c..d6a4180 100755
--- a/docs/generate.py
+++ b/docs/generate.py
@@ -116,6 +116,8 @@
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"
@@ -238,7 +240,8 @@
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,
diff --git a/docs/src/changelog.txt b/docs/src/changelog.txt
new file mode 100644
index 0000000..557c248
--- /dev/null
+++ b/docs/src/changelog.txt
@@ -0,0 +1 @@
+[[changelog]]
diff --git a/docs/src/index.txt b/docs/src/index.txt
index 9e9ad4c..a369274 100644
--- a/docs/src/index.txt
+++ b/docs/src/index.txt
@@ -40,4 +40,6 @@
- `Designer Recipies <recipies.txt>`_
+- `Changelog <changelog.txt>`_
+
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_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_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 @@
-> 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')