Class: Middleman::Renderers::Less::LocalLoadingLessTemplate

Inherits:
Tilt::LessTemplate
  • Object
show all
Defined in:
lib/middleman-core/renderers/less.rb

Overview

A SassTemplate for Tilt which outputs debug messages

Instance Method Summary collapse

Instance Method Details

#prepareObject



36
37
38
39
40
41
42
43
# File 'lib/middleman-core/renderers/less.rb', line 36

def prepare
  if ::Less.const_defined? :Engine
    @engine = ::Less::Engine.new(data)
  else
    parser  = ::Less::Parser.new(options.merge :filename => eval_file, :line => line, :paths => [".", File.dirname(eval_file)])
    @engine = parser.parse(data)
  end
end