class Tilt::KramdownTemplate

Kramdown Markdown implementation. See: kramdown.rubyforge.org/

Constants

DUMB_QUOTES

Public Instance Methods

allows_script?() click to toggle source
# File lib/tilt/kramdown.rb, line 20
def allows_script?
  false
end
evaluate(scope, locals, &block) click to toggle source
# File lib/tilt/kramdown.rb, line 16
def evaluate(scope, locals, &block)
  @output ||= @engine.to_html
end
prepare() click to toggle source
# File lib/tilt/kramdown.rb, line 10
def prepare
  options[:smart_quotes] = DUMB_QUOTES unless options[:smartypants]
  @engine = Kramdown::Document.new(data, options)
  @output = nil
end