Class: Tilt::LessTemplateWithPaths

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

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.load_pathObject

Returns the value of attribute load_path.



4
5
6
# File 'lib/forge/engines.rb', line 4

def load_path
  @load_path
end

Instance Method Details

#prepareObject



7
8
9
10
# File 'lib/forge/engines.rb', line 7

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