Sha256: db7a53274aa6f3bc2315521f32dc4c002cf011b65ba743043b178841c63761af
Contents?: true
Size: 325 Bytes
Versions: 3
Compression:
Stored size: 325 Bytes
Contents
module Nanoc::Filters class Sass < Nanoc::Filter identifiers :sass def run(content) require 'sass' # Get options options = @obj_rep.attribute_named(:sass_options) || {} options[:filename] = filename # Get result ::Sass::Engine.new(content, options).render end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-2.2 | lib/nanoc/filters/sass.rb |
nanoc-2.2.1 | lib/nanoc/filters/sass.rb |
nanoc-2.2.2 | lib/nanoc/filters/sass.rb |