class Marten::Template::NodeSet

Overview

Represents a set of nodes.

A set of nodes is simply an enumerable holding Marten::Template::Node objects. It provides convenient methods allowing to render the underlying nodes.

Included Modules

Defined in:

marten/template/node_set.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(node : Node::Base) #

Add a node to the node set.


[View source]
def each(*args, **options) #

[View source]
def each(*args, **options, &) #

[View source]
def render(context : Context) #

Renders the node set for a specific context.


[View source]