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

Chris Withers chris at simplistix.co.uk
Tue Sep 14 17:35:44 EDT 2004


Fred Drake wrote:
>>><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.

Well, the difference in processing in the <script> contents already 
feels like a special rule to me, and has lead to much insanity already...

Chris

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


More information about the ZPT mailing list