Sha256: a544c4c41e69e83acfecde4b2704775a8b66ee5114b894d90dd9375dd2a53bb7

Contents?: true

Size: 314 Bytes

Versions: 12

Compression:

Stored size: 314 Bytes

Contents

module Webgen::ContentProcessor

  # Processes content in Textile format using the +redcloth+ library.
  class RedCloth

    # Convert the content in +context+ to HTML.
    def call(context)
      require 'redcloth'
      context.content = ::RedCloth.new(context.content).to_html
      context
    end

  end

end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 lib/webgen/contentprocessor/redcloth.rb
gettalong-webgen-0.5.5.20081001 lib/webgen/contentprocessor/redcloth.rb
gettalong-webgen-0.5.5.20081010 lib/webgen/contentprocessor/redcloth.rb
gettalong-webgen-0.5.5.20081012 lib/webgen/contentprocessor/redcloth.rb
gettalong-webgen-0.5.6.20081020 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.0 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.3 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.1 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.2 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.4 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.6 lib/webgen/contentprocessor/redcloth.rb
webgen-0.5.5 lib/webgen/contentprocessor/redcloth.rb