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

Noah Gift noah.gift at gmail.com
Thu Jan 10 03:10:10 EST 2008


On Jan 10, 2008, at 2:59 AM, Stefan H. Holek wrote:

> 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

Aha, thanks!  The reason I ask, and this will be uploaded as a  
tutorial, is that I am allowing a user to add RSS feeds to a page that  
will get re-aggregated in realtime via the AJAX Feed API.  That is  
exactly what I needed.
>
>
>
> On 10. Jän 2008, at 01:59, Noah Gift wrote:
>
>> <script type="text/javascript">
>
> --
> Anything that happens, happens.  --Douglas Adams
>

http://noahgift.com [Python+Grok+AJAX+Mashup]



More information about the Grok-dev mailing list