Template
WikiCloth implementation. See: redcloth.org/
# File lib/tilt/wiki.rb, line 32 def self.engine_initialized? defined? ::WikiCloth::Parser end
# File lib/tilt/wiki.rb, line 46 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
# File lib/tilt/wiki.rb, line 36 def initialize_engine require_template_library 'wikicloth' end
# File lib/tilt/wiki.rb, line 40 def prepare @parser = options.delete(:parser) || WikiCloth::Parser @engine = @parser.new options.merge(:data => data) @output = nil end
[Validate]
Generated with the Darkfish Rdoc Generator 2.