Tilt::RedClothTemplate

RedCloth implementation. See: redcloth.org/

Public Class Methods

engine_initialized?() click to toggle source
   # File lib/tilt/textile.rb, line 7
7:     def self.engine_initialized?
8:       defined? ::RedCloth
9:     end

Public Instance Methods

evaluate(scope, locals, &block) click to toggle source
    # File lib/tilt/textile.rb, line 20
20:     def evaluate(scope, locals, &block)
21:       @output ||= @engine.to_html
22:     end
initialize_engine() click to toggle source
    # File lib/tilt/textile.rb, line 11
11:     def initialize_engine
12:       require_template_library 'redcloth'
13:     end
prepare() click to toggle source
    # File lib/tilt/textile.rb, line 15
15:     def prepare
16:       @engine = RedCloth.new(data)
17:       @output = nil
18:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.