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

Noah Gift noah.gift at gmail.com
Wed Jan 9 19:59:55 EST 2008


In doing our screencast tonight, we wanted to dynamically create  
javascript, and ran into a problem.  What is the best method, or  
preferred method to deal with javascript embedded into a template.  It  
appears that you cannot replace the contents of anything inside:

<script type="text/javascript">

using tal expressions.  we were attempting to pass attributes from  
ZODB and then create dynamic javascript with them.  I am thinking this  
is perhaps not allowed by design?  If so, what is the better way to  
talk to javascript for Grok, and pass things to javascript functions.

Noah




More information about the Grok-dev mailing list