Helio Pereira schrieb:
> When I include the follow tag in a template, tgw (or genshi) gives an
> error:
> 
> """<a href="teste?ola=ole&pp=xx">teste</a>"""
> 
> TemplateSyntaxError: not well-formed (invalid token): line 88, column
> 45 (/media/Dados/wWw/vhosts/tg2/bp/bp/templates/posto.html, line 88)

As the error message says: this is not valid XML. Use this instead:

"""<a href="teste?ola=ole&amp;pp=xx">teste</a>"""

Or even better, use turbogears.url:

"""<a href="${tg.url('teste'. ola=ole, pp=xx)}">teste</a>"""


Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to