Tilt::RedClothTemplate

RedCloth implementation. See: redcloth.org/

Public Instance Methods

evaluate(scope, locals, &block) click to toggle source
     # File lib/sinatra/tilt.rb, line 647
647:     def evaluate(scope, locals, &block)
648:       @output ||= @engine.to_html
649:     end
initialize_engine() click to toggle source
     # File lib/sinatra/tilt.rb, line 637
637:     def initialize_engine
638:       return if defined? ::RedCloth
639:       require_template_library 'redcloth'
640:     end
prepare() click to toggle source
     # File lib/sinatra/tilt.rb, line 642
642:     def prepare
643:       @engine = RedCloth.new(data)
644:       @output = nil
645:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.