Sha256: bef93cd8e2c4a86bda4f2067ca856e82753e1b2a3af780a94277a6127493d096

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

# encoding: utf-8

require 'rubypants'

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

    # 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

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-3.5.0 lib/nanoc/filters/rubypants.rb
nanoc-3.5.0b2 lib/nanoc/filters/rubypants.rb
nanoc-3.5.0b1 lib/nanoc/filters/rubypants.rb