Sal
Peter Hoffmann Director Data Engineering at Blue Yonder. Python Developer, Conference Speaker, Mountaineer

Flask LessCSS

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

It's as easy as wrapping your flask app:

from flaskext.lesscss import lesscss
lesscss(app)

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.