[ZPT] Re: [Roundup-users] why does tal not get interpretted inside <scr ipt> tags?

Chris Withers chris at simplistix.co.uk
Tue Sep 7 05:34:19 EDT 2004


Marlon van den Berg wrote:
> *old* browsers do parse the lines in-between <script> and </script>, but not
> the lines between <!-- and -->. That is why the comment tags are often used
> within script tags. Why not do it like that for TAL. That would allow users
> to use TAL within script tags. And if the script has strings containing
> tags, then use the comment tags to skip that part. The example would then
> be:
> 
> <script>
> //<!--
> if (ordered) {
>    document.write('<ol>')
> } else {
>    document.write('<ul>')
> }
> //-->
> </script>

This is a very good idea from my p.o.v.
What do other people think?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the ZPT mailing list