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 761
761:     def evaluate(scope, locals, &block)
762:       @output ||= @engine.to_html
763:     end

[Source]

     # File lib/tilt.rb, line 751
751:     def initialize_engine
752:       return if defined? ::BlueCloth
753:       require_template_library 'bluecloth'
754:     end

[Source]

     # File lib/tilt.rb, line 756
756:     def prepare
757:       @engine = BlueCloth.new(data, options)
758:       @output = nil
759:     end

[Validate]