Frank Conradie wrote:
> "/" is mapped to tomcat/webapps/ROOT by default.
> 
> In order to make the serving of static content as efficient as possible you
> don't want it to go through Turbine, thus you could place the "static" stuff
> in some directory off Tomcat's ROOT. E.g. if your project is in
> tomcat/webapps/genesis then put your static stuff in, say,
> tomcat/webapps/ROOT/genesisresources or something similar. Then use
> "/genesisresources/..."
> 
> Works for us! I'd actually like to hear other people's views on this - how
> DO you handle static stuff like images, js and css files, etc.?

I think that this is not the clearest solution. I'd prefer to keep my resources
in the same context as the project. The problem is that you need to dynamically
add context name in fron of your resource URLs, because you don't want it
staticaly sewed up in your templates, do you. 
Lately Sean Legassick & John McNally were discussing something like

<img src="$link.setStaticContent("/images/logo.gif")">

but AFAIK it didn't make it to the CVS yet.

see 
http://www.mail-archive.com/[email protected]/msg04554.html
and
http://www.mail-archive.com/[email protected]/msg04599.html

Rafal


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to