iamjazzar / django-mako

The first simple, elegant Django Mako library
https://www.ahmedjazzar.com
MIT License
18 stars 10 forks source link

Handling exceptions during rendering #7

Closed WnP closed 6 years ago

WnP commented 6 years ago

Return contextual line information to django when exception is raised during rendering.

This is mostly a port of Mako html_error_template.

iamjazzar commented 6 years ago

This is really helpful and interesting, will be working on this tomorrow :D

WnP commented 6 years ago

Hi @ahmedaljazzar

Glad you like it :wink:

I've made some refactoring to remove some useless variables and computations.