Class: Amrita::TemplateText

Class Amrita::TemplateText |
In: | lib/amrita/template.rb
Parent: | Template

Methods

load_template need_update? new

Public Class methods

new(template_text, fname="", lno=0)

    # File lib/amrita/template.rb, line 398
        def initialize(template_text, fname="", lno=0)
          super()
          @template_text, @fname, @lno = template_text, fname, lno
          @template = nil
        end

Public Instance methods

load_template()

    # File lib/amrita/template.rb, line 404
        def load_template
          @template = get_parser_class.parse_text(@template_text, @fname, @lno, setup_taginfo) do |e|
            if @parser_filter
              @parser_filter.call(e)
            else
              e
            end
          end
        end

need_update?()

    # File lib/amrita/template.rb, line 414
        def need_update?
          @template == nil
        end