That's not really a relative url. So it won't work when your app is mounted
at a path prefix.

Am 16.02.2012 17:34 schrieb "León Domingo" <[email protected]>:

> Hi people,
> Why should I use tg.url(....) instead of a simply relative-URL?
>
> Lately, i'm not using it because to me it looks cleaner this:
>
> $.ajax({
>  url: "/foo/bar/",
>  ...
> });
>
> than this
>
> $.ajax({
>  url: "{{tg.url('/foo/bar/')}}",
>  ...
> });
>
> and the result is the same...
>
> Thanks
>
> --
> 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.
>
>

-- 
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