Class Tilt::BlueClothTemplate
In: lib/tilt/markdown.rb
Parent: Template

BlueCloth Markdown implementation. See: deveiate.org/projects/BlueCloth/

Methods

Public Class methods

[Source]

     # File lib/tilt/markdown.rb, line 127
127:     def self.engine_initialized?
128:       defined? ::BlueCloth
129:     end

Public Instance methods

[Source]

     # File lib/tilt/markdown.rb, line 140
140:     def evaluate(scope, locals, &block)
141:       @output ||= @engine.to_html
142:     end

[Source]

     # File lib/tilt/markdown.rb, line 131
131:     def initialize_engine
132:       require_template_library 'bluecloth'
133:     end

[Source]

     # File lib/tilt/markdown.rb, line 135
135:     def prepare
136:       @engine = BlueCloth.new(data, options)
137:       @output = nil
138:     end

[Validate]