RedCloth implementation. See: redcloth.org/
# File lib/tilt/textile.rb, line 7 def self.engine_initialized? defined? ::RedCloth end
# File lib/tilt/textile.rb, line 25 def allows_script? false end
# File lib/tilt/textile.rb, line 21 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
# File lib/tilt/textile.rb, line 11 def initialize_engine require_template_library 'redcloth' end
# File lib/tilt/textile.rb, line 15 def prepare @engine = RedCloth.new(data) options.each {|k, v| @engine.send("#{k}=", v) if @engine.respond_to? "#{k}="} @output = nil end