Sha256: 5356f49d73d65c68e6f17e1cf70e15f94285b29beee05ff99e0322e2da001846
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 Bytes
Contents
module Massimo class Stylesheet < Massimo::Resource def render case source_path.extname.to_s 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.6.4 | lib/massimo/stylesheet.rb |
massimo-0.6.3 | lib/massimo/stylesheet.rb |
massimo-0.6.2 | lib/massimo/stylesheet.rb |
massimo-0.6.1 | lib/massimo/stylesheet.rb |