On May 6, 2006, at 4:19 PM, David Stanek wrote:


On 5/6/06, Robin Haswell <[EMAIL PROTECTED]> wrote:

Nah _javascript_ is fine in templates. All you need to do is place it in <!-- --> comments for
non-_javascript_-aware browsers. That includes Kid.


I usually use XML comments to hide my _javascript_. It seems like a more natural solution than <![CDATA  ]]>. On the other hand, I agree with Bob. Putting your _javascript_ into a .js file is a better solution for _javascript_ that is not dynamically created. 

Using comments to wrap something that you want to keep in the document is a bad idea.  Sure, it might happen to work with Kid, but I still wouldn't do it or recommend it.

-bob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to