View Source Serum.Template (serum_md v1.6.5)

Defines a struct which stores a template and its information.

Summary

Types

@type collection() :: %{optional(binary()) => t()}
@type t() :: %Serum.Template{
  ast: Macro.t(),
  file: binary(),
  include_resolved?: boolean(),
  name: binary(),
  type: type()
}
@type type() :: :template | :include

Functions

Link to this function

new(ast, name, type, path)

View Source
@spec new(Macro.t(), binary(), type(), binary()) :: t()