金字塔
问题描述:
这是有关这个问题的调试Mako的模板:How do you debug Mako templates?金字塔
One response提到内置的debugging system in Mako和there's a comment about how it works well in Pyramid。但是,我不知道如何将金字塔中提到的内容合并到一起,因为您从不直接调用Mako的模板渲染方法。
答
有一个金字塔设置捕捉马科例外。
一个小金字塔的扩展目标在金字塔鲭例外。
如果你想与灰鲭渲染方法直接接触得到,你可以去鲭预处理器。
示例代码。