class Tilt::MarukuTemplate
Maruku markdown implementation. See: maruku.rubyforge.org/
Public Class Methods
engine_initialized?()
click to toggle source
# File lib/tilt/markdown.rb, line 164 def self.engine_initialized? defined? ::Maruku end
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/markdown.rb, line 181 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/markdown.rb, line 177 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
initialize_engine()
click to toggle source
# File lib/tilt/markdown.rb, line 168 def initialize_engine require_template_library 'maruku' end
prepare()
click to toggle source
# File lib/tilt/markdown.rb, line 172 def prepare @engine = Maruku.new(data, options) @output = nil end