Edgewall Software

Changes between Version 15 and Version 16 of HelperFunctions


Ignore:
Timestamp:
Aug 28, 2007, 7:04:31 PM (12 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HelperFunctions

    v15 v16  
    11= Helper functions for use in Genshi templates =
    22[[PageOutline(2)]]
    3 Often you need non-trivial presentation logic in templates, but Genshi does not (yet) let you drop into straight Python. In Genshi, such presentation logic must be either performed in the controller (i.e. the Python code feeding the template with data), or in ''helper functions'' that are called from within template expressions.
     3Often you need non-trivial presentation logic in templates, but dropping into Python code blocks for such tasks is not always appropriate. It's much more elegant to perform such tasks in the controller (i.e. the Python code feeding the template with data), or in ''helper functions'' that are called from within template expressions.
    44
    55This page serves as a place where generalized functions that solve common tasks in presentation logic can be collected. At some point, Genshi might include a library of such functions.