If you want be designer-friendly you can do this tip:
http://docs.turbogears.org/1.0/Designer?highlight=%28design%29

The example
<link rel="stylesheet" type="text/css" href="/Path/To/File.css"
   py:attrs="href='/path/on/website'"/>

If it works with <link>, must work with any attribute (img, a, ...)

It's more work (you white the url twice) but it works.

2007/6/18, Paul Howell <[EMAIL PROTECTED]>:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to