Class

TemplatePage::Context

Inheritance
< Object

A context holds a stack of key/value pairs (like a symbol table). When asked to resolve a key, it first searches the top of the stack, then the next level, and so on until it finds a match (or runs out of entries)

Methods

Class

Visibility Signature
public new ()

Instance

Visibility Signature
public find_scalar (key)
public lookup (key)
public pop ()
public push (hash)

Class Method Detail

new()

Instance Method Detail

find_scalar(key)

Find a scalar value, throwing an exception if not found. This method is used when substituting the %xxx% constructs

lookup(key)

Lookup any key in the stack of hashes

pop()

push(hash)