class

Marten::Template::NodeSet

Inherits Enumerable / Reference / Object

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.

Constructors

Instance methods

add(node : Node::Base)

Add a node to the node set.

Source
each(*args, **options)
Source
each(*args, **options, &)
Source
render(context : Context)

Renders the node set for a specific context.

Source