How do you debug Mako templates?

后端 未结 6 1718
星月不相逢
星月不相逢 2021-01-30 21:15

So far I\'ve found it impossible to produce usable tracebacks when Mako templates aren\'t coded correctly.

Is there any way to debug templates besides iterating for ever

6条回答
  •  逝去的感伤
    2021-01-30 21:46

    I break them down into pieces, and then reassemble the pieces when I've found the problem.

    Not good, but it's really hard to tell what went wrong in a big, complex template.

提交回复
热议问题