summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hammel <jhammel@mozilla.com>2010-12-21 17:03:54 -0800
committerJeff Hammel <jhammel@mozilla.com>2010-12-21 17:03:54 -0800
commit22f95e0bd900ab0dace1cf01606095f925a7d252 (patch)
tree1fb7ea14fc721d034f2031938c8a112e71cc1658
parentc12afe463f63249f70cace60fa2d8869cb452171 (diff)
downloadtempita-22f95e0bd900ab0dace1cf01606095f925a7d252.tar.gz
add documentation for delimeters
-rw-r--r--docs/index.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/index.txt b/docs/index.txt
index bfb5208..fcf97e0 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -149,6 +149,13 @@ If you want to have ``{{`` or ``}}`` in your template, you must use
the built-in variables like ``{{start_braces}}`` and
``{{end_braces}}``. There's no escape character.
+You may also specify the delimeters as an argument to the Template
+__init__ method:
+
+ >>> Template(content='Hello ${name}', delimeters=('${', '}))
+
+The delimeters argument must be of length two and both items must be strings.
+
None, as a special case, is substituted as the empty string.
Also there is a command for setting default values in your template::