go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think the easiest solution would be to have your designers type src="/images/logo.jpg", href="/css/wiw.css", etc. and then put the respective files in the directories
(with /Users/mysilmaril/Sites/WIW/ being the webserver's configured document root) In this case, no additional mapping of path components like /images —> /assets/images would be required (via TT2 [% images %] or whatever). If you can't get your designers to type anything other than src="/logo.jpg", you could set up a RewriteRule to prepend /assets/images to any URI-path that ends in .jpg, .png, .gif, etc. P.S.: if you're going to use
I'm pretty sure you don't want the /Users/mysilmaril/Sites/WIW part in there, as the image would then (most likely) be searched under
In reply to Re^3: Template Toolkit Question
by almut
|
|