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, line 29 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/redcarpet.rb, line 25 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
flags()
click to toggle source
# File lib/tilt/redcarpet.rb, line 16 def flags FLAGS.select { |flag| options[flag] }.map { |flag| ALIAS[flag] || flag } end
prepare()
click to toggle source
# File lib/tilt/redcarpet.rb, line 20 def prepare @engine = RedcarpetCompat.new(data, *flags) @output = nil end