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

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

RDiscount is a simple text filter. It does not support scope or locals. The +:smartypants+ and +:escape_html+ options may be set true to enable those flags on the underlying BlueCloth object.

Methods

Public Instance methods

[Source]

     # File lib/tilt.rb, line 776
776:     def evaluate(scope, locals, &block)
777:       @output ||= @engine.to_html
778:     end

[Source]

     # File lib/tilt.rb, line 766
766:     def initialize_engine
767:       return if defined? ::BlueCloth
768:       require_template_library 'bluecloth'
769:     end

[Source]

     # File lib/tilt.rb, line 771
771:     def prepare
772:       @engine = BlueCloth.new(data, options)
773:       @output = nil
774:     end

[Validate]