class Marten::Template::Context::BlockStack

Overview

Represents a stack of blocks used for a given context.

Defined in:

marten/template/context/block_stack.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[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]