@import statements. Less handles these during parse-time, so we want to wrap them up as a node in the tree. We also include the nodes, though, since we want to have access to the mixins so we can tell if they take arguments or not. The included nodes are hidden so they don’t appear in the output.
# File lib/sass/less.rb, line 105 105: def build_with_sass(env) 106: line = input.line_of(interval.first) 107: import = Sass::Tree::ImportNode.new(url.value.gsub(/\.less$/, '')) 108: import.line = input.line_of(interval.first) 109: env << Node::SassNode.new(import) 110: old_rules = env.rules.dup 111: build_without_sass env 112: (env.rules - old_rules).each {|r| r.hide_in_sass = true} 113: rescue ImportError => e 114: raise Sass::SyntaxError.new("File to import #{url.text_value} not found or unreadable", :line => line) 115: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.