class Marten::Template::Template

Overview

A compiled template.

Defined in:

marten/template/template.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String) #

[View source]

Instance Method Detail

Returns the nodes corresponding to the parsed template.


[View source]
def render(context : Context | Nil = nil) : String #

Renders the template for a specific context.


[View source]
def render(context : Hash | NamedTuple) : String #

Renders the template for a specific context.


[View source]