files in static are not evaluated, they are served as they are. If you
really want to put {{ ... }} tags into a css file you have the make
the file dynamical by creating an action for it (def xyz(): return
dict()) and a view "default/xyz.css" you can now put {{ ... }} tags in
the xyz.css.

I do not think you need this anyway since you say both images and css
are in static. Just use relative CSS paths like url(../images/
image.png)

On May 23, 9:21 am, scausten <[email protected]> wrote:
> I've been trying to get images into my css (both stored in static),
> using URL() to pull the image, but because of the relative path from
> the css to the image folder, and the fact that URL() returns a url
> from the root(?), I'm having trouble with the syntax - is there a
> standard way of doing this?

Reply via email to