class

Marten::Template::Context::BlockStack

Inherits Reference < Object

Represents a stack of blocks used for a given context.

Constructors

Instance methods

add(blocks : Array(Tag::Block)) : Nil

Adds an array of block tags to the stack.

Source
get(name : String)

Returns the latest block tag for a given name.

Source
pop(name : String)

Removes the latest block tag associated with the passed name from the stack.

Source
push(block : Tag::Block) : Nil

Pushes a block tag to the stack.

Source