Sha256: c93a2bdf44aa1480f6648ec74020a9218a694ff6d0f27b3d12426df60e2bbb8c
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
module Nanoc2::Filters class Sass < Nanoc2::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc2-2.2.3 | lib/nanoc2/filters/sass.rb |