Move block run

This commit is contained in:
Thomas Reynolds 2016-01-12 16:03:23 -08:00
parent 8daa5eba3e
commit c213bd19df
14 changed files with 161 additions and 150 deletions

View file

@ -4,12 +4,11 @@ module Middleman
module Renderers
# Sass renderer
class Less < ::Middleman::Extension
define_setting :less, {}, 'LESS compiler options'
def initialize(app, options={}, &block)
super
# Default less options
app.config.define_setting :less, {}, 'LESS compiler options'
# Tell Tilt to use it as well (for inline sass blocks)
::Tilt.register 'less', LocalLoadingLessTemplate
::Tilt.prefer(LocalLoadingLessTemplate)