Sha256: d8cfa82fc7cbc7f0cd63dc493045a01d2f7025fec7ba0bafdab5d7cc4955ddb2

Contents?: true

Size: 257 Bytes

Versions: 3

Compression:

Stored size: 257 Bytes

Contents

class String

  # Converts the string using RubyPants/SmartyPants
  def smartypants
    nanoc_require 'rubypants'
    RubyPants.new(self).to_html
  end

end

register_filter 'smartypants', 'rubypants' do |page, pages, config|
  page.content.smartypants
end

Version data entries

3 entries across 3 versions & 1 rubygems

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