- added "preprocessor" argument to Template, TemplateLookup - is a single
callable or list of callables which will be applied to the template text before lexing. given the text as an argument, returns the new text. - added mako.ext.preprocessors package, contains one preprocessor so far: 'convert_comments', which will convert single # comments to the new ## format
Showing
- CHANGES 7 additions, 1 deletionCHANGES
- lib/mako/ext/preprocessors.py 20 additions, 0 deletionslib/mako/ext/preprocessors.py
- lib/mako/lexer.py 9 additions, 1 deletionlib/mako/lexer.py
- lib/mako/lookup.py 2 additions, 2 deletionslib/mako/lookup.py
- lib/mako/template.py 4 additions, 3 deletionslib/mako/template.py
- test/lexer.py 12 additions, 0 deletionstest/lexer.py
- test/template.py 15 additions, 1 deletiontest/template.py
Loading
Please register or sign in to comment