- Added a "decorator" kw argument to <%def>,
allows custom decoration functions to wrap rendering callables. Mainly intended for custom caching algorithms, not sure what other uses there may be (but there may be). Examples are in the "filtering" docs.
Showing
- CHANGES 7 additions, 0 deletionsCHANGES
- doc/build/content/defs.txt 1 addition, 0 deletionsdoc/build/content/defs.txt
- doc/build/content/filtering.txt 37 additions, 0 deletionsdoc/build/content/filtering.txt
- lib/mako/codegen.py 10 additions, 0 deletionslib/mako/codegen.py
- lib/mako/parsetree.py 2 additions, 1 deletionlib/mako/parsetree.py
- lib/mako/runtime.py 18 additions, 1 deletionlib/mako/runtime.py
- test/alltests.py 1 addition, 0 deletionstest/alltests.py
- test/decorators.py 75 additions, 0 deletionstest/decorators.py
Loading
Please register or sign in to comment