【问题标题】:debugging Mako templates in Pyramid在 Pyramid 中调试 Mako 模板
【发布时间】:2013-03-28 07:40:15
【问题描述】:

这和这个问题有关:How do you debug Mako templates?

One response 提到了内置的debugging system in Makothere's a comment about how it works well in Pyramid。但是,我不知道您将如何将提到的内容合并到 Pyramid 中,因为您从不直接调用 Mako 的模板渲染方法。

【问题讨论】:

    标签: debugging pyramid mako


    【解决方案1】:

    有一个金字塔设置可以捕获 mako 异常。

    针对金字塔中的 mako 异常的小型金字塔扩展。

    如果你想直接接触mako渲染方法,可以去mako预处理器。

    此方法的示例代码。

    【讨论】:

      猜你喜欢
      • 2011-09-20
      • 2010-09-28
      • 2012-03-02
      • 2013-03-08
      • 2012-10-25
      • 2012-08-21
      • 1970-01-01
      • 2012-05-26
      • 2011-06-12
      相关资源
      最近更新 更多