class Tilt::FormdownTemplate
Public Class Methods
engine_initialized?()
click to toggle source
DUMB_QUOTES = [39, 39, 34, 34]
# File lib/tilt/formdown.rb, line 8 def self.engine_initialized? defined? ::Formdown end
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/formdown.rb, line 27 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/formdown.rb, line 23 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
initialize_engine()
click to toggle source
# File lib/tilt/formdown.rb, line 12 def initialize_engine require_template_library 'formdown' end
prepare()
click to toggle source
# File lib/tilt/formdown.rb, line 16 def prepare # options[:smart_quotes] = DUMB_QUOTES unless options[:smartypants] # @engine = Formdown::Document.new(data, options) @engine = Formdown::Renderer.new(data) @output = nil end