diff options
author | Ian Bicking <ianb@colorstudy.com> | 2010-09-02 01:13:50 -0500 |
---|---|---|
committer | Ian Bicking <ianb@colorstudy.com> | 2010-09-02 01:13:50 -0500 |
commit | 5cc4e884d8c9337e112784357fa770916777559e (patch) | |
tree | 64572337680f4f5b7728d91de75c58a205029753 | |
parent | 2bd385beb755caee756b9e9c671a2854a430edd3 (diff) | |
download | tempita-5cc4e884d8c9337e112784357fa770916777559e.tar.gz |
Added some news
-rw-r--r-- | docs/index.txt | 12 |
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 --- |