<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>genshi.template.directives</title> <link rel="stylesheet" href="epydoc.css" type="text/css" /> <script type="text/javascript" src="epydoc.js"></script> </head> <body bgcolor="white" text="black" link="blue" vlink="#204080" alink="#204080"> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Home link --> <th> <a href="genshi-module.html">Home</a> </th> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" ><a class="navbar" target="_top" href="../index.html">Documentation Index</a></th> </tr></table></th> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="100%"> <span class="breadcrumbs"> <a href="genshi-module.html">Package genshi</a> :: <a href="genshi.template-module.html">Package template</a> :: Module directives </span> </td> <td> <table cellpadding="0" cellspacing="0"> <!-- hide/show private --> </table> </td> </tr> </table> <!-- ==================== MODULE DESCRIPTION ==================== --> <h1 class="epydoc">Module directives</h1><p class="nomargin-top"></p> Implementation of the various template directives. <!-- ==================== CLASSES ==================== --> <a name="section-Classes"></a> <table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white"> <tr bgcolor="#70b0f0" class="table-header"> <td align="left" colspan="2" class="table-header"> <span class="table-header">Classes</span></td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.AttrsDirective-class.html" class="summary-name">AttrsDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:attrs</tt> template directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.ContentDirective-class.html" class="summary-name">ContentDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:content</tt> template directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.DefDirective-class.html" class="summary-name">DefDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:def</tt> template directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.ForDirective-class.html" class="summary-name">ForDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:for</tt> template directive for repeating an element based on an iterable in the context data. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.IfDirective-class.html" class="summary-name">IfDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:if</tt> template directive for conditionally excluding elements from being output. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.MatchDirective-class.html" class="summary-name">MatchDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:match</tt> template directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.ReplaceDirective-class.html" class="summary-name">ReplaceDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:replace</tt> template directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.StripDirective-class.html" class="summary-name">StripDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:strip</tt> template directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.ChooseDirective-class.html" class="summary-name">ChooseDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:choose</tt> directive for conditionally selecting one of several body elements to display. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.WhenDirective-class.html" class="summary-name">WhenDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:when</tt> directive for nesting in a parent with the <tt class="rst-rst-docutils literal rst-docutils literal">py:choose</tt> directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.OtherwiseDirective-class.html" class="summary-name">OtherwiseDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:otherwise</tt> directive for nesting in a parent with the <tt class="rst-rst-docutils literal rst-docutils literal">py:choose</tt> directive. </td> </tr> <tr> <td width="15%" align="right" valign="top" class="summary"> <span class="summary-type"> </span> </td><td class="summary"> <a href="genshi.template.directives.WithDirective-class.html" class="summary-name">WithDirective</a><br /> Implementation of the <tt class="rst-rst-docutils literal rst-docutils literal">py:with</tt> template directive, which allows shorthand access to variables and expressions. </td> </tr> </table> <!-- ==================== NAVIGATION BAR ==================== --> <table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0"> <tr valign="middle"> <!-- Home link --> <th> <a href="genshi-module.html">Home</a> </th> <!-- Tree link --> <th> <a href="module-tree.html">Trees</a> </th> <!-- Index link --> <th> <a href="identifier-index.html">Indices</a> </th> <!-- Help link --> <th> <a href="help.html">Help</a> </th> <!-- Project homepage --> <th class="navbar" align="right" width="100%"> <table border="0" cellpadding="0" cellspacing="0"> <tr><th class="navbar" align="center" ><a class="navbar" target="_top" href="../index.html">Documentation Index</a></th> </tr></table></th> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%%"> <tr> <td align="left" class="footer"> Generated by Epydoc 3.0.1 on Sun Jan 27 18:17:20 2013 </td> <td align="right" class="footer"> <a target="mainFrame" href="http://epydoc.sourceforge.net" >http://epydoc.sourceforge.net</a> </td> </tr> </table> <script type="text/javascript"> <!-- // Private objects are initially displayed (because if // javascript is turned off then we want them to be // visible); but by default, we want to hide them. So hide // them unless we have a cookie that says to show them. checkCookie(); // --> </script> </body> </html>