Home | Trees | Indices | Help |
|
---|
|
object --+ | Directive --+ | ContentDirective
Implementation of the py:content template directive.
This directive replaces the content of the element with the result of evaluating the value of the py:content attribute:
>>> from genshi.template import MarkupTemplate >>> tmpl = MarkupTemplate('''<ul xmlns:py="http://genshi.edgewall.org/"> ... <li py:content="bar">Hello</li> ... </ul>''') >>> print(tmpl.generate(bar='Bye')) <ul> <li>Bye</li> </ul>
Nested Classes | |
Inherited from |
Instance Methods | |
Inherited from Inherited from |
Class Methods | |||
|
Class Variables | |
tagname =
|
Properties | |
Inherited from Inherited from |
Method Details |
Called after the template stream has been completely parsed. This class method should return a (directive, stream) tuple. If
directive is not None, it should be an instance of the Directive
class, and gets added to the list of directives applied to the substream
at runtime.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 22 14:10:37 2010 | http://epydoc.sourceforge.net |