Parent

Methods

Class Index [+]

Quicksearch

Webgen::ContentProcessor::RedCloth

Processes content in Textile format using the redcloth library.

Public Instance Methods

call(context) click to toggle source

Convert the content in context to HTML.

    # File lib/webgen/contentprocessor/redcloth.rb, line 9
 9:     def call(context)
10:       require 'redcloth'
11:       doc = ::RedCloth.new(context.content)
12:       doc.hard_breaks = context.website.config['contentprocessor.redcloth.hard_breaks']
13:       context.content = doc.to_html
14:       context
15:     rescue LoadError
16:       raise Webgen::LoadError.new('redcloth', self.class.name, context.dest_node, 'RedCloth')
17:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.