class

Marten::Template::Template

Inherits Reference < Object

A compiled template.

Constructors

new(source : String)
Source

Instance methods

nodes

Returns the nodes corresponding to the parsed template.

Source
render(context : Context | Nil = nil) : String

Renders the template for a specific context.

Source
render(context : Hash | NamedTuple) : String

Renders the template for a specific context.

Source