Setup Less paths for imports

This commit is contained in:
Thomas Reynolds 2012-08-10 12:29:15 -07:00
parent 80e36b7c53
commit 955c66a54f

View file

@ -18,6 +18,10 @@ module Middleman
template_extensions :less => :css
end
app.after_configuration do
::Less.paths << File.expand_path(css_dir, source_dir)
end
# Tell Tilt to use it as well (for inline sass blocks)
::Tilt.register 'less', LocalLoadingLessTemplate
::Tilt.prefer(LocalLoadingLessTemplate)