Debugging mako NameError("Undefined")

112 Views Asked by At

Is there any way of obtaining more information about what happens when NameError("Undefined") is raised in Mako templates.

In Flask-Mako there is a solution, but I'm not using flask. So I need a pure Mako solution

1

There are 1 best solutions below

0
somenxavier On

A partial solution is to use strict_undefined=True in Template instance (see reference)