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