class Tilt::KramdownTemplate
Kramdown Markdown implementation. See: kramdown.rubyforge.org/
Constants
- DUMB_QUOTES
Public Class Methods
engine_initialized?()
click to toggle source
# File lib/tilt/kramdown.rb, line 10 def self.engine_initialized? defined? ::Kramdown end
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/kramdown.rb, line 28 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/kramdown.rb, line 24 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
initialize_engine()
click to toggle source
# File lib/tilt/kramdown.rb, line 14 def initialize_engine require_template_library 'kramdown' end
prepare()
click to toggle source
# File lib/tilt/kramdown.rb, line 18 def prepare options[:smart_quotes] = DUMB_QUOTES unless options[:smartypants] @engine = Kramdown::Document.new(data, options) @output = nil end