class Marten::Template::Context::BlockStack
- Marten::Template::Context::BlockStack
- Reference
- Object
Overview
Represents a stack of blocks used for a given context.
Defined in:
marten/template/context/block_stack.crConstructors
Instance Method Summary
-
#add(blocks : Array(Tag::Block)) : Nil
Adds an array of block tags to the stack.
-
#get(name : String)
Returns the latest block tag for a given name.
-
#pop(name : String)
Removes the latest block tag associated with the passed name from the stack.
-
#push(block : Tag::Block) : Nil
Pushes a block tag to the stack.
Constructor Detail
Instance Method Detail
def pop(name : String)
#
Removes the latest block tag associated with the passed name from the stack.