On Thu, Jan 5, 2012 at 1:24 PM, Thomi Richards <[email protected]> wrote:
> Hi,
>
> I'm working on a pylons project, and we have users trying to host the
> web-app under a non-root path (i.e. host it at '/myapp/' rather than at
> '/'). We've been pretty good about using 'h.url_for' to generate links in
> our jinja2 templates, so most things work as expected. However, our CSS file
> has paths to icons, background images etc. Since these are served as static
> files these paths never get modified.


If the CSS files have moving parts, they are templates, and should be
served that way.  If Jinja2 can't render them, Mako can.  You'll have
to set up a controller action for them, of course.

-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to