lib/plate/less_template.rb in plate-0.6.3 vs lib/plate/less_template.rb in plate-0.7.0.pre
- old
+ new
@@ -25,10 +25,11 @@
:filename => eval_file,
:line => line,
:paths => paths
})
- scope.partials = data.to_s.scan(/@import\s"(.*?)";/i).flatten.collect { |s| s.split('/').last.gsub(/^_/, '') }
+ partials = data.to_s.scan(/@import\s"(.*?)";/i).flatten.collect { |s| s.split('/').last.gsub(/^_/, '') }
+ scope.partials = scope.partials + partials
parser = ::Less::Parser.new(less_options)
parser.parse(data).to_css
end
end
\ No newline at end of file