Issue #199 new

steal/port jinja2's exception rewriting logic

created an issue

The mako-render render script is useful for rendering templates in a non-html environment (eg I use it to generate c++ code ...)

It currently doesn't produce usable tracebacks when there is an error in the template. It should do something like

  1. !python try: print render(data) except: from mako import exceptions from sys import stderr print >> sys.stderr, exceptions.text_error_template().render()

in main()

Comments (2)

  1. Michael Bayer repo owner
  2. Log in to comment