Home | Trees | Indices | Help |
|
---|
|
object --+ | Directive --+ | IfDirective
Implementation of the py:if template directive for conditionally excluding elements from being output.
>>> from genshi.template import MarkupTemplate >>> tmpl = MarkupTemplate('''<div xmlns:py="http://genshi.edgewall.org/"> ... <b py:if="foo">${bar}</b> ... </div>''') >>> print tmpl.generate(foo=True, bar='Hello') <div> <b>Hello</b> </div>
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
Inherited from Inherited from |
Class Methods | |
Inherited from |
Class Variables | |
ATTRIBUTE =
|
|
tagname =
|
Properties | |
Inherited from Inherited from |
Method Details |
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Tue Aug 14 11:00:58 2007 | http://epydoc.sourceforge.net |