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 <slugg...@gmail.com>
This works for me:
background: url(../img/logo.png);
while having project files
project/project/public/css/main.css
project/project/public/img/logo.png
--
Petr
looking at how you implemented http://bazaar.launchpad.net/~sloecode/sloecode/trunk/revision/141
, i would really suggest that you add a memory cache function to
this. rendering doesn't take much work, but there can be dozens of js/
css files.
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For our site we actually have a build process for our CSS templates at application start. This way we can have different domains depending on the configuration (testing, prod, dev), and it all works with the same templates. They are compiled at application start rather than being served dynamically because the context never changes and we can take advantage of nginx's speed at serving static content.
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/M9ZmPVP3_m0J.