index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  4. <title>
  5. Documentation
  6. </title>
  7. <link rel="stylesheet" href="docs.css"></link>
  8. <link rel="stylesheet" href="highlight.css"></link>
  9. </head>
  10. <body>
  11. <div id="topanchor"><a name="top">&nbsp;</a></div>
  12. <div id="pagecontrol"><a href="index.html">Multiple Pages</a> | <a href="documentation.html">One Page</a></div>
  13. <h1>Mako Documentation</h1>
  14. <div class="versionheader">Version: 0.3.4 Last Updated: 06/22/10 17:39:23</div>
  15. <div class="topnav">
  16. <a name="full_index"></a>
  17. <h3>Table of Contents</h3>
  18. <ul>
  19. <li><A style="" href="usage.html">Basic Usage</a></li>
  20. <ul>
  21. <li><A style="" href="usage.html#usage_file">Using File-Based Templates</a></li>
  22. <ul>
  23. </ul>
  24. <li><A style="" href="usage.html#usage_lookup">Using TemplateLookup</a></li>
  25. <ul>
  26. <li><A style="" href="usage.html#usage_lookup_size">Setting the Collection Size</a></li>
  27. <ul>
  28. </ul>
  29. <li><A style="" href="usage.html#usage_lookup_checks">Setting Filesystem Checks</a></li>
  30. <ul>
  31. </ul>
  32. </ul>
  33. <li><A style="" href="usage.html#usage_using">Using Unicode and Encoding</a></li>
  34. <ul>
  35. </ul>
  36. <li><A style="" href="usage.html#usage_handling">Handling Exceptions</a></li>
  37. <ul>
  38. </ul>
  39. <li><A style="" href="usage.html#usage_common">Common Framework Integrations</a></li>
  40. <ul>
  41. <li><A style="" href="usage.html#usage_common_turbogears/pylons">Turbogears/Pylons Plugin</a></li>
  42. <ul>
  43. </ul>
  44. <li><A style="" href="usage.html#usage_common_wsgi">WSGI</a></li>
  45. <ul>
  46. </ul>
  47. <li><A style="" href="usage.html#usage_common_pygments">Pygments</a></li>
  48. <ul>
  49. </ul>
  50. <li><A style="" href="usage.html#usage_common_babel">Babel (Internationalization)</a></li>
  51. <ul>
  52. </ul>
  53. </ul>
  54. </ul>
  55. <li><A style="" href="syntax.html">Syntax</a></li>
  56. <ul>
  57. <li><A style="" href="syntax.html#syntax_expression">Expression Substitution</a></li>
  58. <ul>
  59. <li><A style="" href="syntax.html#syntax_expression_expression">Expression Escaping</a></li>
  60. <ul>
  61. </ul>
  62. </ul>
  63. <li><A style="" href="syntax.html#syntax_control">Control Structures</a></li>
  64. <ul>
  65. </ul>
  66. <li><A style="" href="syntax.html#syntax_comments">Comments</a></li>
  67. <ul>
  68. </ul>
  69. <li><A style="" href="syntax.html#syntax_newline">Newline Filters</a></li>
  70. <ul>
  71. </ul>
  72. <li><A style="" href="syntax.html#syntax_python">Python Blocks</a></li>
  73. <ul>
  74. <li><A style="" href="syntax.html#syntax_python_module-level">Module-level Blocks</a></li>
  75. <ul>
  76. </ul>
  77. </ul>
  78. <li><A style="" href="syntax.html#syntax_tags">Tags</a></li>
  79. <ul>
  80. <li><A style="" href="syntax.html#syntax_tags_page"><%page></a></li>
  81. <ul>
  82. </ul>
  83. <li><A style="" href="syntax.html#syntax_tags_include"><%include></a></li>
  84. <ul>
  85. </ul>
  86. <li><A style="" href="syntax.html#syntax_tags_def"><%def></a></li>
  87. <ul>
  88. </ul>
  89. <li><A style="" href="syntax.html#syntax_tags_namespace"><%namespace></a></li>
  90. <ul>
  91. </ul>
  92. <li><A style="" href="syntax.html#syntax_tags_inherit"><%inherit></a></li>
  93. <ul>
  94. </ul>
  95. <li><A style="" href="syntax.html#syntax_tags_namespacename:defname"><%namespacename:defname></a></li>
  96. <ul>
  97. </ul>
  98. <li><A style="" href="syntax.html#syntax_tags_call"><%call></a></li>
  99. <ul>
  100. </ul>
  101. <li><A style="" href="syntax.html#syntax_tags_doc"><%doc></a></li>
  102. <ul>
  103. </ul>
  104. <li><A style="" href="syntax.html#syntax_tags_text"><%text></a></li>
  105. <ul>
  106. </ul>
  107. </ul>
  108. <li><A style="" href="syntax.html#syntax_returning">Returning early from a template</a></li>
  109. <ul>
  110. </ul>
  111. </ul>
  112. <li><A style="" href="defs.html">Defs</a></li>
  113. <ul>
  114. <li><A style="" href="defs.html#defs_remotedefs">Calling defs from Other Files</a></li>
  115. <ul>
  116. </ul>
  117. <li><A style="" href="defs.html#defs_programmatic">Calling defs programmatically</a></li>
  118. <ul>
  119. </ul>
  120. <li><A style="" href="defs.html#defs_nesteddefs">Defs within Defs</a></li>
  121. <ul>
  122. </ul>
  123. <li><A style="" href="defs.html#defs_defswithcontent">Calling a def with embedded content and/or other defs</a></li>
  124. <ul>
  125. </ul>
  126. </ul>
  127. <li><A style="" href="runtime.html">The Mako Runtime Environment</a></li>
  128. <ul>
  129. <li><A style="" href="runtime.html#runtime_context">Context</a></li>
  130. <ul>
  131. <li><A style="" href="runtime.html#runtime_context_buffer">The Buffer</a></li>
  132. <ul>
  133. </ul>
  134. <li><A style="" href="runtime.html#runtime_context_variables">Context Variables</a></li>
  135. <ul>
  136. </ul>
  137. <li><A style="" href="runtime.html#runtime_context_accessors">Context Methods and Accessors</a></li>
  138. <ul>
  139. </ul>
  140. </ul>
  141. <li><A style="" href="runtime.html#runtime_builtins">All the built-in names</a></li>
  142. <ul>
  143. </ul>
  144. </ul>
  145. <li><A style="" href="namespaces.html">Namespaces</a></li>
  146. <ul>
  147. <li><A style="" href="namespaces.html#namespaces_howtocall">Ways to Call Namespaces</a></li>
  148. <ul>
  149. </ul>
  150. <li><A style="" href="namespaces.html#namespaces_frommodules">Namespaces from Regular Python Modules</a></li>
  151. <ul>
  152. </ul>
  153. <li><A style="" href="namespaces.html#namespaces_declaring">Declaring defs in namespaces.</a></li>
  154. <ul>
  155. </ul>
  156. <li><A style="" href="namespaces.html#namespaces_body">The "body()" method</a></li>
  157. <ul>
  158. </ul>
  159. <li><A style="" href="namespaces.html#namespaces_properties">Namespace methods and properties</a></li>
  160. <ul>
  161. </ul>
  162. <li><A style="" href="namespaces.html#namespaces_builtin">Built-in Namespaces</a></li>
  163. <ul>
  164. <li><A style="" href="namespaces.html#namespaces_builtin_local">local</a></li>
  165. <ul>
  166. </ul>
  167. <li><A style="" href="namespaces.html#namespaces_builtin_self">self</a></li>
  168. <ul>
  169. </ul>
  170. </ul>
  171. <li><A style="" href="namespaces.html#namespaces_inheritable">Inheritable Namespaces</a></li>
  172. <ul>
  173. </ul>
  174. </ul>
  175. <li><A style="" href="inheritance.html">Inheritance</a></li>
  176. <ul>
  177. <li><A style="" href="inheritance.html#inheritance_next">Using the "next" namespace to produce content wrapping</a></li>
  178. <ul>
  179. </ul>
  180. <li><A style="" href="inheritance.html#inheritance_parent">Using the "parent" namespace to augment defs</a></li>
  181. <ul>
  182. </ul>
  183. <li><A style="" href="inheritance.html#inheritance_inheritable">Inheritable Attributes</a></li>
  184. <ul>
  185. </ul>
  186. </ul>
  187. <li><A style="" href="filtering.html">Filtering and Buffering</a></li>
  188. <ul>
  189. <li><A style="" href="filtering.html#filtering_expression">Expression Filtering</a></li>
  190. <ul>
  191. <li><A style="" href="filtering.html#filtering_expression_defaultfilters">The default_filters Argument</a></li>
  192. <ul>
  193. </ul>
  194. <li><A style="" href="filtering.html#filtering_expression_turning">Turning off Filtering with the "n" filter</a></li>
  195. <ul>
  196. </ul>
  197. </ul>
  198. <li><A style="" href="filtering.html#filtering_filtering">Filtering Defs</a></li>
  199. <ul>
  200. </ul>
  201. <li><A style="" href="filtering.html#filtering_buffering">Buffering</a></li>
  202. <ul>
  203. </ul>
  204. <li><A style="" href="filtering.html#filtering_decorating">Decorating</a></li>
  205. <ul>
  206. </ul>
  207. </ul>
  208. <li><A style="" href="unicode.html">The Unicode Chapter</a></li>
  209. <ul>
  210. <li><A style="" href="unicode.html#unicode_specifying">Specifying the Encoding of a Template File</a></li>
  211. <ul>
  212. </ul>
  213. <li><A style="" href="unicode.html#unicode_handling">Handling Expressions</a></li>
  214. <ul>
  215. </ul>
  216. <li><A style="" href="unicode.html#unicode_defining">Defining Output Encoding</a></li>
  217. <ul>
  218. <li><A style="" href="unicode.html#unicode_defining_buffer">Buffer Selection</a></li>
  219. <ul>
  220. </ul>
  221. </ul>
  222. <li><A style="" href="unicode.html#unicode_saying">Saying to Heck with it: Disabling the usage of Unicode entirely</a></li>
  223. <ul>
  224. </ul>
  225. </ul>
  226. <li><A style="" href="caching.html">Caching</a></li>
  227. <ul>
  228. <li><A style="" href="caching.html#caching_arguments">Cache arguments</a></li>
  229. <ul>
  230. </ul>
  231. <li><A style="" href="caching.html#caching_accessing">Accessing the Cache</a></li>
  232. <ul>
  233. </ul>
  234. </ul>
  235. </ul>
  236. </div>
  237. </body>
  238. </html>