Sha256: 61a920d508de97ff0a7d956ca37c74bb94970ed4fab7473c9a13295ec44c736e

Contents?: true

Size: 452 Bytes

Versions: 8

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters

  # @since 3.2.0
  class Typogruby < Nanoc::Filter

    requires 'typogruby'

    # 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

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-3.6.7 lib/nanoc/filters/typogruby.rb
nanoc-3.6.6 lib/nanoc/filters/typogruby.rb
nanoc-3.6.5 lib/nanoc/filters/typogruby.rb
nanoc-3.6.4 lib/nanoc/filters/typogruby.rb
nanoc-3.6.3 lib/nanoc/filters/typogruby.rb
nanoc-3.6.2 lib/nanoc/filters/typogruby.rb
nanoc-3.6.1 lib/nanoc/filters/typogruby.rb
nanoc-3.6.0 lib/nanoc/filters/typogruby.rb