Changes between Version 15 and Version 16 of HelperFunctions
- Timestamp:
- Aug 28, 2007, 7:04:31 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HelperFunctions
v15 v16 1 1 = Helper functions for use in Genshi templates = 2 2 [[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 performedin the controller (i.e. the Python code feeding the template with data), or in ''helper functions'' that are called from within template expressions.3 Often 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. 4 4 5 5 This 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.