Method: Less::Import1#build
- Defined in:
- lib/less/engine/parser.rb
#build(env) ⇒ Object
| 493 494 495 496 497 498 499 500 501 502 | # File 'lib/less/engine/parser.rb', line 493 def build env path = File.join(env.root.file, url.value) path += '.less' unless path =~ /\.less$/ if File.exist? path imported = Less::Engine.new(File.new path).to_tree env.rules += imported.rules else raise ImportError, path end end |