Class: Middleman::Renderers::Less::LocalLoadingLessTemplate
- Inherits:
-
Tilt::LessTemplate
- Object
- Tilt::LessTemplate
- Middleman::Renderers::Less::LocalLoadingLessTemplate
- Defined in:
- lib/middleman-core/renderers/less.rb
Overview
A SassTemplate for Tilt which outputs debug messages
Instance Method Summary collapse
Instance Method Details
#prepare ⇒ Object
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(.merge :filename => eval_file, :line => line, :paths => [".", File.dirname(eval_file)]) @engine = parser.parse(data) end end |