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/markdown.rb, line 191 def self.engine_initialized? defined? ::Kramdown end
Public Instance Methods
          allows_script?()
          
          click to toggle source
          
        
        
        # File lib/tilt/markdown.rb, line 209 def allows_script? false end
          evaluate(scope, locals, &block)
          
          click to toggle source
          
        
        
        # File lib/tilt/markdown.rb, line 205 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
          initialize_engine()
          
          click to toggle source
          
        
        
        # File lib/tilt/markdown.rb, line 195 def initialize_engine require_template_library 'kramdown' end
          prepare()
          
          click to toggle source
          
        
        
        # File lib/tilt/markdown.rb, line 199 def prepare options[:smart_quotes] = DUMB_QUOTES unless options[:smartypants] @engine = Kramdown::Document.new(data, options) @output = nil end