Amrita::PartsTemplate (Module)

In: lib/amrita/compiler.rb
lib/amrita/parts.rb

Methods

Included Modules

Public Instance methods

[Source]

# File lib/amrita/parts.rb, line 42
    def amrita_expand_element(e, context=DefaultContext.clone)
      e.clone { parts_template.expand(ptx, context) }
    end

[Source]

# File lib/amrita/parts.rb, line 35
    def ptx
      unless defined? @ptx
        @ptx = PartsTempleteExpander.new(self)
      end
      @ptx
    end

[Source]

# File lib/amrita/parts.rb, line 46
    def to_s
      SanitizedString.new(parts_template.expand(ptx).to_s)
    end

[Validate]