class Tilt::Redcarpet1Template

Compatibility mode for Redcarpet 1.x

Constants

ALIAS
FLAGS

Public Instance Methods

allows_script?() click to toggle source
   # File lib/tilt/redcarpet.rb
29 def allows_script?
30   false
31 end
evaluate(scope, locals, &block) click to toggle source
   # File lib/tilt/redcarpet.rb
25 def evaluate(scope, locals, &block)
26   @output ||= @engine.to_html
27 end
flags() click to toggle source
   # File lib/tilt/redcarpet.rb
16 def flags
17   FLAGS.select { |flag| options[flag] }.map { |flag| ALIAS[flag] || flag }
18 end
prepare() click to toggle source
   # File lib/tilt/redcarpet.rb
20 def prepare
21   @engine = RedcarpetCompat.new(data, *flags)
22   @output = nil
23 end