Serum.Template (serum v1.5.1) View Source

Defines a struct which stores a template and its information.

Link to this section Summary

Link to this section Types

Specs

collection() :: %{optional(binary()) => t()}

Specs

t() :: %Serum.Template{
  ast: Macro.t(),
  file: binary(),
  include_resolved?: boolean(),
  name: binary(),
  type: type()
}

Specs

type() :: :template | :include

Link to this section Functions

Link to this function

new(ast, name, type, path)

View Source

Specs

new(Macro.t(), binary(), type(), binary()) :: t()