Peter Hoffmann on Stackoverflow @peterhoffmann on twitter Peter Hoffmann on Facebook Contact me per email Subscribe to Atom Feed

Peter Hoffmann

Software Engineer
prev page next page

Flask LessCSS

Posted on June 1, 2010
#python #css

is a small Flask extension that will automatically re-render your .less files into CSS before each request if they’ve changed.

It's as easy as wrapping your flask app:

from flaskext.lesscss import lesscss

This will watch your app’s static media directory and automatically render .less files into .css files in the same (sub)directory.

You can get the code from bitbucket or github.