Sha256: b3e718de16b696be2b0947b2b411db45496a4ddfb3aa0ef7f4b31daf41b201d8
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
module Massimo class Stylesheet < Massimo::Resource def render case source_path.extname when '.sass', '.scss' require 'sass' unless defined?(Sass) options = Massimo.config.options_for(:sass).merge(:css_filename => output_path) Sass::Files.tree_for(source_path.to_s, options).render when '.less' require 'less' unless defined?(Less) Less::Engine.new(content, Massimo.config.options_for(:less)).to_css else super end end def extension @extension ||= '.css' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
massimo-0.7.0 | lib/massimo/stylesheet.rb |
massimo-0.6.8 | lib/massimo/stylesheet.rb |
massimo-0.6.7 | lib/massimo/stylesheet.rb |
massimo-0.6.5 | lib/massimo/stylesheet.rb |