This one time, at band camp, Alexandre CONRAD wrote:
>I have the following routing.py setup:
>
>     map.connect('css', '/css/mp_v1.css')
>     map.connect('img', '/img')
>     map.connect(':controller/:action/:id')
>     map.connect('*url', controller='template', action='view')
>
>in my main autohandler, I want to do:
>
>   <img src="<% h.url_for('img') %>/monitor48x48.gif">
>
>but it doesn't display the image correctly. When I right click the image 
>properties, the url shows:
>
>http://192.168.1.5/dispatch.fcgi/css/mp_v1.css/monitor48x48.gif

If you're serving static content, do you really want a controller?

I'd put the css and img directories in public/, and then static content
middleware takes care of it.

Of course that means you don't use h.url_for anymore.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to