class Marten::Template::Context::BlockStack


Represents a stack of blocks used for a given context.

Defined in:



Instance Method Summary

Constructor Detail

def #

[View source]

Instance Method Detail

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

Adds an array of block tags to the stack.

[View source]
def get(name : String) #

Returns the latest block tag for a given name.

[View source]
def pop(name : String) #

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

[View source]
def push(block : Tag::Block) : Nil #

Pushes a block tag to the stack.

[View source]