Sha256: 04f89c6183e41bddf82cfabbfbb07b552330e1695d72d17303f1dabba744a2da
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
require 'less' class Assette::Reader::Less < Assette::Reader(:css) def compile args={} parser = Less::Parser.new({ :paths => [File.expand_path(@file.dirname)]|Assette.config.file_paths, :filename => @file.filename }) tree = parser.parse(text) tree.to_css(options.merge(args)) end private def options Assette.config.less end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
assette-0.1.2 | lib/assette/readers/less.rb |
assette-0.1.1 | lib/assette/readers/less.rb |
assette-0.1.0 | lib/assette/readers/less.rb |