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
171:     def self.engine_initialized?
172:       defined? ::Kramdown
173:     end

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.