python - image-url and images_dir in pyScss? -
i'm trying utilize image-url
compass helper in scss files described in this blog post, i'm unable find way set images_dir
(or equivalent) in pyscss.
i've looked through docs , some of code, , pyscss doesn't seem have place set value, claim back upwards image-url
.
is possible specify images directory in current versions of pyscss?
no, pyscss has no back upwards whatsoever either images_dir
or images_path
.
instead, image-url()
paths always looked against static_root
config variable only.
small comfort: static_root
can callable yields (filename, storage)
tuples; image_url()
it'll utilize first value yielded. storage
object needs implement django storage
api (it'll utilize .modified_time()
, perhaps .open()
methods), perhaps utilize that intercept *.jpg
, *.png
, etc. paths 'redirect' images dir of choice.
the generated url (stubbornly) consist of static_url
+ path passed image_url()
.
i suggest add together feature request / bug study issue tracker request add together proper back upwards setting images_dir
, images_path
instead.
python compass-sass
No comments:
Post a Comment