class Tilt::RedClothTemplate
RedCloth implementation. See: redcloth.org/
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/redcloth.rb 18 def allows_script? 19 false 20 end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/redcloth.rb 14 def evaluate(scope, locals, &block) 15 @output ||= @engine.to_html 16 end
prepare()
click to toggle source
# File lib/tilt/redcloth.rb 8 def prepare 9 @engine = RedCloth.new(data) 10 options.each {|k, v| @engine.send("#{k}=", v) if @engine.respond_to? "#{k}="} 11 @output = nil 12 end