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