summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2010-09-02 01:13:50 -0500
committerIan Bicking <ianb@colorstudy.com>2010-09-02 01:13:50 -0500
commit5cc4e884d8c9337e112784357fa770916777559e (patch)
tree64572337680f4f5b7728d91de75c58a205029753
parent2bd385beb755caee756b9e9c671a2854a430edd3 (diff)
downloadtempita-5cc4e884d8c9337e112784357fa770916777559e.tar.gz
Added some news
-rw-r--r--docs/index.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/index.txt b/docs/index.txt
index b50c174..0989264 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -107,7 +107,7 @@ You can also instantiate a template from a filename with
``Template.from_filename(filename, namespace={}, encoding=None)``.
This is like calling::
- Template(open(filename, 'rb').read().decode(encoding),
+ Template(open(filename, 'rb').read().decode(encoding),
name=filename, namespace=namespace)
Unicode
@@ -131,7 +131,7 @@ The Language
============
The language is fairly simple; all the constructs look like
-``{{stuff}}``.
+``{{stuff}}``.
Substitution
------------
@@ -243,7 +243,7 @@ For anything more complicated, you can use blocks of Python code,
like::
{{py:x = 1}}
-
+
{{py:
lots of code
}}
@@ -284,7 +284,7 @@ lets you use attributes::
>>> print bunch.b
None
-This can be nice for passing options into a template.
+This can be nice for passing options into a template.
The other object is for use inside the template, and is part of the
default namespace, ``looper``. This can be used in ``for`` loops in
@@ -469,8 +469,12 @@ News
hg tip
------
+* Python 3 compatible.
+
* Fixed bug where file-relative filenames wouldn't work well.
+* Fixed the stripping of empty lines.
+
0.4
---