Cherry.Theme.TemplateSpec (cherry v0.1.0-rc.3)

Copy Markdown View Source

One entry in a theme's template inventory: the template's name, the assigns it receives, and what it is for. Fixed names and fixed assigns are the contract that makes theme swapping real.

Summary

Functions

Parses the manifest's templates: keyword list into specs.

Types

t()

@type t() :: %Cherry.Theme.TemplateSpec{
  assigns: [atom()],
  doc: String.t() | nil,
  name: atom()
}

Functions

from_manifest(entries)

@spec from_manifest(keyword()) :: [t()]

Parses the manifest's templates: keyword list into specs.