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

-Rob

Bob Ippolito wrote:
> 
> On May 6, 2006, at 2:41 AM, Alberto Valverde wrote:
> 
>>
>> On 06/05/2006, at 3:19, Wenjie He wrote:
>>
>>> Anybody have occur such situation?
>>> While using javascript operator "&&" in KID template,
>>> KID can't parse template to html, and raise
>>> "ExpatError: not well-formed (invalid token)"
>>>
>>> How can I do a "logic and" operation in a kid template, instead?
>> Changing "&&" to "&amp;&amp" should do the trick.
> 
> Alternatively, keep your JavaScript out of the template. You really  
> shouldn't put anything dynamic in there anyway.
> 
> -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