Parent

Tilt::KramdownTemplate

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

Constants

DUMB_QUOTES

Public Class Methods

engine_initialized?() click to toggle source
# File lib/tilt/markdown.rb, line 171
def self.engine_initialized?
  defined? ::Kramdown
end

Public Instance Methods

evaluate(scope, locals, &block) click to toggle source
# File lib/tilt/markdown.rb, line 185
def evaluate(scope, locals, &block)
  @output ||= @engine.to_html
end
initialize_engine() click to toggle source
# File lib/tilt/markdown.rb, line 175
def initialize_engine
  require_template_library 'kramdown'
end
prepare() click to toggle source
# File lib/tilt/markdown.rb, line 179
def prepare
  options[:smart_quotes] = DUMB_QUOTES unless options[:smartypants]
  @engine = Kramdown::Document.new(data, options)
  @output = nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.