Issues

Issue #199 new

steal/port jinja2's debug.py exception rewriting logic

guest
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. Mike Bayer repo owner
  2. Log in to comment