Sha256: a10895852660f222e263682268b1bf142b2b3d315b7ff73edef90d17c647053e

Contents?: true

Size: 454 Bytes

Versions: 8

Compression:

Stored size: 454 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.7.3 lib/nanoc/filters/typogruby.rb
nanoc-3.7.2 lib/nanoc/filters/typogruby.rb
nanoc-3.7.1 lib/nanoc/filters/typogruby.rb
nanoc-3.7.0 lib/nanoc/filters/typogruby.rb
nanoc-3.6.11 lib/nanoc/filters/typogruby.rb
nanoc-3.6.10 lib/nanoc/filters/typogruby.rb
nanoc-3.6.9 lib/nanoc/filters/typogruby.rb
nanoc-3.6.8 lib/nanoc/filters/typogruby.rb