Sha256: 86b7865e73750d9de850d36c9a323461526e450dfa22f6b1ba3167898019232a

Contents?: true

Size: 203 Bytes

Versions: 3

Compression:

Stored size: 203 Bytes

Contents

class String

  # Converts the string using Sass
  def sass
    nanoc_require 'haml'
    Sass::Engine.new(self).render
  end

end

register_filter 'sass' do |page, pages, config|
  page.content.sass
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-1.6 lib/nanoc/filters/sass_filter.rb
nanoc-1.6.2 lib/nanoc/filters/sass_filter.rb
nanoc-1.6.1 lib/nanoc/filters/sass_filter.rb