Peter HoffmannFollow
Director Data Engineering at Blue Yonder. Python Developer, Conference Speaker, Mountaineer
June 1, 2010
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.