1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

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)