serum v0.13.0 Serum.Template

Defines a struct which stores a template and its information.

This module also provides an interface to an Agent, which is responsible for holding templates and includable templates.

Link to this section Summary

Link to this section Types

Link to this type

t()
t() :: %Serum.Template{ast: Macro.t(), file: binary(), type: template_type()}

Link to this type

template_type()
template_type() :: :template | :include

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get(template_name, type \\ :template)
get(binary(), template_type()) :: t() | nil

Link to this function

load(map, type)
load(map(), template_type()) :: :ok

Link to this function

new(ast, type, path)
new(Macro.t(), template_type(), binary()) :: t()

Link to this function

start_link(args)