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 68
68:     def self.engine_initialized?
69:       defined? ::BlueCloth
70:     end

Public Instance methods

[Source]

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

[Source]

    # File lib/tilt/markdown.rb, line 72
72:     def initialize_engine
73:       require_template_library 'bluecloth'
74:     end

[Source]

    # File lib/tilt/markdown.rb, line 76
76:     def prepare
77:       @engine = BlueCloth.new(data, options)
78:       @output = nil
79:     end

[Validate]