Sha256: f6c4996b49a2bb6a740854cb8db70d11c3fd16f46a25105328405c180d6f032a
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
require 'malt/formats/abstract' require 'malt/engines/less' module Malt::Format # = LESS # # See http://lesscss.org/ # class LESS < Abstract register('less') # def less text end # def to_less self end # def css render_engine.render(:text=>text, :file=>:file, :format=>:css) end # def to_css text = css opts = options.merge(:text=>text, file=>refile(:css), :type=>:css) CSS.new(opts) end private # def render_engine @render_engine ||= Malt::Engine::Less.new(options) end # LESS default output type is CSS. def default :css end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
malt-0.1.1 | lib/malt/formats/less.rb |