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

RedCloth implementation. See: redcloth.org/

Methods

Public Instance methods

[Source]

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

[Source]

     # File lib/tilt.rb, line 785
785:     def initialize_engine
786:       return if defined? ::RedCloth
787:       require_template_library 'redcloth'
788:     end

[Source]

     # File lib/tilt.rb, line 790
790:     def prepare
791:       @engine = RedCloth.new(data)
792:       @output = nil
793:     end

[Validate]