Class Tilt::RedClothTemplate
In: lib/tilt/textile.rb
Parent: Template

RedCloth implementation. See: redcloth.org/

Methods

Public Class methods

[Source]

   # File lib/tilt/textile.rb, line 7
7:     def self.engine_initialized?
8:       defined? ::RedCloth
9:     end

Public Instance methods

[Source]

    # File lib/tilt/textile.rb, line 25
25:     def allows_script?
26:       false
27:     end

[Source]

    # File lib/tilt/textile.rb, line 21
21:     def evaluate(scope, locals, &block)
22:       @output ||= @engine.to_html
23:     end

[Source]

    # File lib/tilt/textile.rb, line 11
11:     def initialize_engine
12:       require_template_library 'redcloth'
13:     end

[Source]

    # File lib/tilt/textile.rb, line 15
15:     def prepare
16:       @engine = RedCloth.new(data)
17:       options.each {|k, v| @engine.send("#{k}=", v) if @engine.respond_to? "#{k}="}
18:       @output = nil
19:     end

[Validate]