class Tilt::BlueClothTemplate
BlueCloth Markdown implementation. See: deveiate.org/projects/BlueCloth/
Public Class Methods
engine_initialized?()
click to toggle source
# File lib/tilt/markdown.rb, line 139 def self.engine_initialized? defined? ::BlueCloth end
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/markdown.rb, line 156 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/markdown.rb, line 152 def evaluate(scope, locals, &block) @output ||= @engine.to_html end
initialize_engine()
click to toggle source
# File lib/tilt/markdown.rb, line 143 def initialize_engine require_template_library 'bluecloth' end
prepare()
click to toggle source
# File lib/tilt/markdown.rb, line 147 def prepare @engine = BlueCloth.new(data, options) @output = nil end