Mercurial > genshi > genshi-test
comparison genshi/template/markup.py @ 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 | 509b3a5e765e |
children | 9ada030ad986 |
comparison
equal
deleted
inserted
replaced
604:6d1fa718794f | 605:bc5faca93699 |
---|---|
62 ('with', WithDirective), | 62 ('with', WithDirective), |
63 ('replace', ReplaceDirective), | 63 ('replace', ReplaceDirective), |
64 ('content', ContentDirective), | 64 ('content', ContentDirective), |
65 ('attrs', AttrsDirective), | 65 ('attrs', AttrsDirective), |
66 ('strip', StripDirective)] | 66 ('strip', StripDirective)] |
67 serializer = 'xml' | |
67 | 68 |
68 def __init__(self, source, basedir=None, filename=None, loader=None, | 69 def __init__(self, source, basedir=None, filename=None, loader=None, |
69 encoding=None, lookup='lenient', allow_exec=True): | 70 encoding=None, lookup='lenient', allow_exec=True): |
70 Template.__init__(self, source, basedir=basedir, filename=filename, | 71 Template.__init__(self, source, basedir=basedir, filename=filename, |
71 loader=loader, encoding=encoding, lookup=lookup, | 72 loader=loader, encoding=encoding, lookup=lookup, |