[svn] added changelog to docs and updated missing version info for some filters
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 14 Apr 2007 22:49:13 +0000 (00:49 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 14 Apr 2007 22:49:13 +0000 (00:49 +0200)
--HG--
branch : trunk

docs/generate.py
docs/src/changelog.txt [new file with mode: 0644]
docs/src/index.txt
jinja/filters.py

index 76e027c7a8ea1e79d4d1fba27bd9b79e3e46e84d..d6a4180589217431958edf7f9c1ee9709c30af79 100755 (executable)
@@ -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('''\
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
@@ -238,7 +240,8 @@ def generate_documentation(data, link_style):
     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 (file)
index 0000000..557c248
--- /dev/null
@@ -0,0 +1 @@
+[[changelog]]
index 9e9ad4c5d49877a385305ce8bb958fbf0ddddf10..a369274ecf9765726695f4b94e9dcda6243da404 100644 (file)
@@ -40,4 +40,6 @@ Welcome in the Jinja documentation.
 
   - `Designer Recipies <recipies.txt>`_
 
+- `Changelog <changelog.txt>`_
+
 There is also support via IRC on the ``#pocoo`` channel on `irc.freenode.net`.
index c83ed6ab777545207c8b0dee61dad9e415d27199..a6d0dd8e10bb86252e19e06745c73bb14b9e176b 100644 (file)
@@ -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')