[ZPT] Tags not allowed inside script blocks?

Hamish Lawson hamish_lawson@yahoo.co.uk
Tue, 12 Jun 2001 22:48:41 +0100 (BST)


Evan Simpson wrote: 

> Hamish Lawson wrote:
> 
> > I want to insert the value of a template variable into a JavaScript
> > code block.
> 
> See http://dev.zope.org/Wikis/DevSite/Projects/ZPT/SearchAndReplace
> for a proposed way of doing this.

That looks very interesting. I particularly like the tal:paths idea.

> In the meantime [...]
> Set up the variables in a prior script tag, like this:
> 
> <script tal:content="string:var x='$foo';>
> var x='foo';
> </script>

Yes, nice trick!

Thanks,
Hamish


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie