- Lexer/Compile exceptions propigate throughout lexer/parsetree/ast
using a more portable **exception_kwargs collection - added "source" member to the dict propigated to Lexer/Compile exceptions - RichTraceback can access original template source as a unicode object using either 'source' memebr on Lexer/Compile exception, or 'source' property on ModuleInfo, fixes #37 - unit tests for #37
Showing
- CHANGES 2 additions, 0 deletionsCHANGES
- lib/mako/ast.py 18 additions, 18 deletionslib/mako/ast.py
- lib/mako/codegen.py 7 additions, 6 deletionslib/mako/codegen.py
- lib/mako/exceptions.py 6 additions, 3 deletionslib/mako/exceptions.py
- lib/mako/lexer.py 17 additions, 14 deletionslib/mako/lexer.py
- lib/mako/parsetree.py 26 additions, 22 deletionslib/mako/parsetree.py
- lib/mako/template.py 14 additions, 6 deletionslib/mako/template.py
- test/ast.py 21 additions, 19 deletionstest/ast.py
- test/template.py 47 additions, 0 deletionstest/template.py
Loading
Please register or sign in to comment