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

Fred Drake fdrake at gmail.com
Tue Sep 7 12:13:11 EDT 2004


On Tue, 07 Sep 2004 10:34:19 +0100, Chris Withers
<chris at simplistix.co.uk> wrote:
> 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?

There lies the path to insanity.  Lots of special rules cause lots of
special code, which ends up difficult to maintain.  This is a bad
thing.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation


More information about the ZPT mailing list