Module: Amrita::PartsTemplate

Module Amrita::PartsTemplate |
In: | lib/amrita/parts.rb lib/amrita/compiler.rb

Methods

amrita_expand_element ptx to_s

Classes and Modules

Class Amrita::PartsTemplate::PartsTempleteExpander

Included modules

Amrita

Public Instance methods

ptx()

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

amrita_expand_element(e, context=DefaultContext.clone)

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

to_s()

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