Parent

Tilt::RDiscountTemplate

Discount Markdown implementation. See: github.com/rtomayko/rdiscount

RDiscount is a simple text filter. It does not support scope or locals. The :smart and :filter_html options may be set true to enable those flags on the underlying RDiscount object.

Constants

ALIAS
FLAGS

Public Instance Methods

allows_script?() click to toggle source
# File lib/tilt/rdiscount.rb, line 34
def allows_script?
  false
end
evaluate(scope, locals, &block) click to toggle source
# File lib/tilt/rdiscount.rb, line 30
def evaluate(scope, locals, &block)
  @output ||= @engine.to_html
end
flags() click to toggle source
# File lib/tilt/rdiscount.rb, line 21
def flags
  FLAGS.select { |flag| options[flag] }.map { |flag| ALIAS[flag] || flag }
end
prepare() click to toggle source
# File lib/tilt/rdiscount.rb, line 25
def prepare
  @engine = RDiscount.new(data, *flags)
  @output = nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.