Sha256: 4f759d463c1d22329157b80f991dfba521f27bcaaf8a3f4e0e724154447ae868

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

module Slinky
  module LessCompiler
    Compilers.register_compiler self,
      :inputs => ["less"],
      :outputs => ["css"],
      :dependencies => [["less", ">= 2.2.0"]]

    def LessCompiler::compile s, file
      parser = Less::Parser.new
      tree = parser.parse(s)
      tree.to_css
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slinky-0.7.3 lib/slinky/compilers/less-compiler.rb
slinky-0.7.2 lib/slinky/compilers/less-compiler.rb
slinky-0.7.1 lib/slinky/compilers/less-compiler.rb
slinky-0.7.0 lib/slinky/compilers/less-compiler.rb