View Source Smokestack.Template protocol (smokestack v0.9.1)

A protocol for generating values from templates.

Summary

Types

t()

All the types that implement this protocol.

Functions

Generate a value from the template.

Initialise the template, if required.

Types

@type mapper() :: nil | (any() -> any())
@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

generate(template, record, options)

View Source
@spec generate(t(), map(), keyword()) :: any()

Generate a value from the template.

@spec init(t()) :: t()

Initialise the template, if required.