Sha256: dadc2d30c1c4bbe75918c569a6c87647879c32343411c9b3d67ce0a5374b8493

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  class RubyPants < Nanoc::Filter

    requires 'rubypants'

    # Runs the content through [RubyPants](http://rubydoc.info/gems/rubypants/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params={})
      # Get result
      ::RubyPants.new(content).to_html
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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