Sha256: ea0152136393d3560c618fa55d093a5bfb8075e9082594ec3f7d76dd6d121f35

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

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