class Tilt::RedClothTemplate

RedCloth implementation. See: redcloth.org/

Public Instance Methods

allows_script?() click to toggle source
# File lib/tilt/redcloth.rb, line 18
def allows_script?
  false
end
evaluate(scope, locals, &block) click to toggle source
# File lib/tilt/redcloth.rb, line 14
def evaluate(scope, locals, &block)
  @output ||= @engine.to_html
end
prepare() click to toggle source
# File lib/tilt/redcloth.rb, line 8
def prepare
  @engine = RedCloth.new(data)
  options.each {|k, v| @engine.send("#{k}=", v) if @engine.respond_to? "#{k}="}
  @output = nil
end