Permalink
Browse files

Mention code blocks in the language extensions section.

  • Loading branch information...
1 parent 5abcab1 commit 0de7bc4cd84e9d763cabb07d46c86093498f9ee2 @malthe committed Feb 29, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 docs/reference.rst
View
@@ -1592,6 +1592,18 @@ comes with a number of new features. Some take inspiration from
${title or item_id}
</span>
+ *Code blocks*
+
+ Using ``<?python ... ?>`` notation, you can embed Python
+ statements in your templates:
+
+ .. code-block:: html
+
+ <div>
+ <?python numbers = map(str, range(1, 10)) ?>
+ Please input a number from the range ${", ".join(numbers)}.
+ </div>
+
*Literal content*
While the ``tal:content`` and ``tal:repeat`` attributes both

0 comments on commit 0de7bc4

Please sign in to comment.