Mercurial > genshi > genshi-test
diff doc/templates.txt @ 605:bc5faca93699
Text templates now default to rendering as plain text; it is no longer necessary to explicitly specify the "text" method to the `render()` or `serialize()` method of the generated markup stream. See tickets #62 and #118.
author | cmlenz |
---|---|
date | Mon, 27 Aug 2007 19:04:20 +0000 |
parents | 7145e4eba2ec |
children | 9ada030ad986 |
line wrap: on
line diff
--- a/doc/templates.txt +++ b/doc/templates.txt @@ -129,7 +129,7 @@ >>> from genshi.template import TextTemplate >>> tmpl = TextTemplate('Hello, $name!') >>> stream = tmpl.generate(name='world') - >>> print stream.render('text') + >>> print stream Hello, world! .. note:: If you want to use text templates, you should consider using the