Sha256: 0cd4d1147303a1eafc2b7774524bc14d80d7d0b094e8ca4c50aaac810ccbf5ff

Contents?: true

Size: 455 Bytes

Versions: 12

Compression:

Stored size: 455 Bytes

Contents

# encoding: utf-8

require 'rubypants'

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

    # Runs the content through [RubyPants](http://chneukirchen.org/blog/static/projects/rubypants.html).
    # 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

12 entries across 12 versions & 1 rubygems

Version Path
nanoc-3.4.3 lib/nanoc/filters/rubypants.rb
nanoc-3.4.2 lib/nanoc/filters/rubypants.rb
nanoc-3.4.1 lib/nanoc/filters/rubypants.rb
nanoc-3.4.0 lib/nanoc/filters/rubypants.rb
nanoc-3.3.7 lib/nanoc/filters/rubypants.rb
nanoc-3.3.6 lib/nanoc/filters/rubypants.rb
nanoc-3.3.5 lib/nanoc/filters/rubypants.rb
nanoc-3.3.4 lib/nanoc/filters/rubypants.rb
nanoc-3.3.3 lib/nanoc/filters/rubypants.rb
nanoc-3.3.2 lib/nanoc/filters/rubypants.rb
nanoc-3.3.1 lib/nanoc/filters/rubypants.rb
nanoc-3.3.0 lib/nanoc/filters/rubypants.rb