Sha256: 7a1a7a7916b2ed91dc884e29dd7d7220da607f85e6b87686e8c7bfe69ccb567d

Contents?: true

Size: 447 Bytes

Versions: 15

Compression:

Stored size: 447 Bytes

Contents

# encoding: utf-8

require 'typogruby'

module Nanoc::Filters

  # @since 3.2.0
  class Typogruby < Nanoc::Filter

    # Runs the content through [Typogruby](http://avdgaag.github.com/typogruby/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params={})
      # Get result
      ::Typogruby.improve(content)
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 lib/nanoc/filters/typogruby.rb
nanoc-3.5.0b2 lib/nanoc/filters/typogruby.rb
nanoc-3.5.0b1 lib/nanoc/filters/typogruby.rb
nanoc-3.4.3 lib/nanoc/filters/typogruby.rb
nanoc-3.4.2 lib/nanoc/filters/typogruby.rb
nanoc-3.4.1 lib/nanoc/filters/typogruby.rb
nanoc-3.4.0 lib/nanoc/filters/typogruby.rb
nanoc-3.3.7 lib/nanoc/filters/typogruby.rb
nanoc-3.3.6 lib/nanoc/filters/typogruby.rb
nanoc-3.3.5 lib/nanoc/filters/typogruby.rb
nanoc-3.3.4 lib/nanoc/filters/typogruby.rb
nanoc-3.3.3 lib/nanoc/filters/typogruby.rb
nanoc-3.3.2 lib/nanoc/filters/typogruby.rb
nanoc-3.3.1 lib/nanoc/filters/typogruby.rb
nanoc-3.3.0 lib/nanoc/filters/typogruby.rb