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

RedCloth implementation. See: redcloth.org/

Methods

Public Instance methods

[Source]

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

[Source]

     # File lib/tilt.rb, line 770
770:     def initialize_engine
771:       return if defined? ::RedCloth
772:       require_template_library 'redcloth'
773:     end

[Source]

     # File lib/tilt.rb, line 775
775:     def prepare
776:       @engine = RedCloth.new(data)
777:       @output = nil
778:     end

[Validate]