Tilt::RDocTemplate

RDoc template. See: rdoc.rubyforge.org/

It’s suggested that your program require ‘rdoc/markup’ and ‘rdoc/markup/to_html’ at load time when using this template engine.

Public Instance Methods

evaluate(scope, locals, &block) click to toggle source
     # File lib/sinatra/tilt.rb, line 722
722:     def evaluate(scope, locals, &block)
723:       @output ||= @engine.to_s
724:     end
initialize_engine() click to toggle source
     # File lib/sinatra/tilt.rb, line 710
710:     def initialize_engine
711:       return if defined?(::RDoc::Markup)
712:       require_template_library 'rdoc/markup'
713:       require_template_library 'rdoc/markup/to_html'
714:     end
prepare() click to toggle source
     # File lib/sinatra/tilt.rb, line 716
716:     def prepare
717:       markup = RDoc::Markup::ToHtml.new
718:       @engine = markup.convert(data)
719:       @output = nil
720:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.