[ZPT] javascript

Chris Withers chrisw@nipltd.com
Sun, 14 Apr 2002 19:01:33 +0100


Harry Wilkinson wrote:
> 
> Hey, good idea! :)  I shoulda thought of that ;)
> 
> I just tried it out, and this works:
> 
> <div tal:replace="structure python:'<script>'">a script tag</div>
> 
> <tal:comment replace="nothing"> your script goes here </tal:comment>
> 
> <div tal:replace="structure python:'</script>'">a /script tag</div>

This is a pretty nasty hack :-S

How about:

<script tal:content="here/myScript">
sample script code...
</script>

?

cheers,

Chris