Mercurial > genshi > genshi-test
diff doc/text-templates.txt @ 394:ebc7c1a3bc4d
Minor doc fixes.
author | cmlenz |
---|---|
date | Thu, 28 Dec 2006 17:50:40 +0000 |
parents | 7ae694e7462e |
children | 6911f3c5a7e8 0742f421caba |
line wrap: on
line diff
--- a/doc/text-templates.txt +++ b/doc/text-templates.txt @@ -72,9 +72,10 @@ .. _python: http://www.python.org/ -If the expression starts with a letter and contains only letters and digits, -the curly braces may be omitted. In all other cases, the braces are required -so that the template processors knows where the expression ends:: +If the expression starts with a letter and contains only letters, digits, dots, +and underscores, the curly braces may be omitted. In all other cases, the +braces are required so that the template processor knows where the expression +ends:: >>> from genshi.template import TextTemplate >>> tmpl = TextTemplate('${items[0].capitalize()} item')