On Fri, 2007-26-01 at 09:52 -0500, Karl Guertin wrote: > On 1/26/07, iain duncan <[EMAIL PROTECTED]> wrote: > > > > > > <script type="text/javascript" src="static/javascript/test.js"></script> > > > > This is a relative path. > > > > > src="/static/javascript/test.js" > > > > This is an absolute path from the root of the web server. If you're on > /index (which you would be in a quickstarted project), they point to > the same location, otherwise they don't. > > I always do the latter, so I'm not remembering where in the official > docs you'd get the idea that a relative path was a good thing.
Thanks Karl. I understand the differences between them, but that doesn't explain the anomolous behaviour. As to why I would use relative paths, I always use them whenever possible as it makes code reorg a lot easier. I did not realize one should not do that for TG. What is the reason to have tg use absolute paths that are not in sync with the host filesystem? Seems confusing. Iain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

