[Grok-dev] best way to dynamically create javascript using ZPT

Stefan H. Holek stefan at epy.co.at
Thu Jan 10 02:59:04 EST 2008


You have to trick TAL by writing the script tag using a TALES  
expression.
e.g.

<tal:tag replace="structure string:<script>" />
<!-- tal:define your variables here -->
<tal:tag replace="structure string:</script>" />

Stefan


On 10. Jän 2008, at 01:59, Noah Gift wrote:

> <script type="text/javascript">

--
Anything that happens, happens.  --Douglas Adams



More information about the Grok-dev mailing list