Class: Tilt::LessTemplateWithPaths

Inherits:
LessTemplate
  • Object
show all
Defined in:
lib/marv/engines.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.load_pathObject

Returns the value of attribute load_path.



5
6
7
# File 'lib/marv/engines.rb', line 5

def load_path
  @load_path
end

Instance Method Details

#prepareObject



8
9
10
11
# File 'lib/marv/engines.rb', line 8

def prepare
  parser = ::Less::Parser.new(:filename => eval_file, :line => line, :paths => [self.class.load_path])
  @engine = parser.parse(data)
end