Christoph Zwerschke wrote:
> aspineux schrieb:
>> but after moving my apps into path "/my_app" I have to update all
>> my href= and src= using tg.url.
>> <img src="${tg.url('/static/images/logo.png')}" alt="logo"/>
>> But this make my template editing more painful, because images are
>> missing !
>
> What you can do with Kid is the following:
>
> <img src="../static/images/logo.png"
> py:attrs="src=tg.url('/static/images/logo.png')"/>
>
> Not nice but it works.
>
> -- Chris
>
Chris, all,
Good point, thanks. Personally, I think this is a GOOD (ie., NICE)
solution. I tend to use the py:attrs approach routinely in place of
using ${var} in <A>, <IMG> attributes. It's cleaner and ignored by
WYSIWYG editors.
Paul
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---