Python vs PHP

Istvan Albert ialbert at mailblocks.com
Sat Oct 23 19:10:33 CEST 2004


Valentino Volonghi aka Dialtone wrote:

> Nevow _CAN_ embed code in the template. and you can do that in this way:

<snip>

what you showed here is basically a workaround, a way to
"trick" python that runs the templating engine into
directly executing a statement ... not a wise choice ...

Moreover why is it that the webpage is so
eager to explicitly contradict this possibility?

http://www.divmod.org/Home/Projects/Nevow/

"Nevow includes the ability to load templates off disk...
... The attribute technique was inspired by the attributes
used by ZPT. However, no actual code may be embedded in
the HTML template"

Istvan.






More information about the Python-list mailing list