A namespace() object of Jinja2, which a template can change.
{% set ns.count = ns.count + 1 %} changes the namespace everywhere it is referenced, also from inside a loop or a macro. The attributes live in Otera.State.
Summary
Functions
Returns the attributes of namespace as a dict.
Returns {:ok, value} for the attribute name, or :error.
Returns the attribute name, or an undefined value.
Makes a namespace with the attributes of dict.
Sets the attribute name to value.
Types
@type t() :: %Otera.Namespace{ref: reference()}
Functions
@spec attributes(t()) :: Otera.Dict.t()
Returns the attributes of namespace as a dict.
Returns {:ok, value} for the attribute name, or :error.
Returns the attribute name, or an undefined value.
@spec new(Otera.Dict.t()) :: t()
Makes a namespace with the attributes of dict.
Sets the attribute name to value.