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

RedCloth implementation. See: redcloth.org/

Methods

Public Instance methods

[Source]

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

[Source]

     # File lib/tilt.rb, line 756
756:     def initialize_engine
757:       return if defined? ::RedCloth
758:       require_template_library 'redcloth'
759:     end

[Source]

     # File lib/tilt.rb, line 761
761:     def prepare
762:       @engine = RedCloth.new(data)
763:       @output = nil
764:     end

[Validate]