Sha256: 0e5d4c3d2c7719567d6fe678e4ffd514592e410e6189ef0dabf80f2ffcccb678
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
# encoding: utf-8 module Nanoc3::Filters class Sass < Nanoc3::Filter # Runs the content through [Sass](http://sass-lang.com/). # Parameters passed to this filter will be passed on to Sass. # # @param [String] content The content to filter # # @return [String] The filtered content def run(content, params={}) require 'sass' # Get options options = params.merge(: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 |
---|---|
nanoc3-3.1.0b2 | lib/nanoc3/filters/sass.rb |