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 20 def allows_script? 21 false 22 end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/kramdown.rb 16 def evaluate(scope, locals, &block) 17 @output ||= @engine.to_html 18 end
prepare()
click to toggle source
# File lib/tilt/kramdown.rb 10 def prepare 11 options[:smart_quotes] = DUMB_QUOTES unless options[:smartypants] 12 @engine = Kramdown::Document.new(data, options) 13 @output = nil 14 end