Parent

Tilt::RedClothTemplate

RedCloth implementation. See: redcloth.org/

Public Class Methods

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

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.