solid v0.4.0 Solid.Context

Link to this section Summary

Functions

Get data from context respecting the scope order provided.

Link to this section Types

Link to this type

scope()

scope() :: :counter_vars | :vars | :iteration_vars
Link to this type

t()

t() :: %Solid.Context{
  counter_vars: Map.t(),
  iteration_vars: %{optional(String.t()) => term()},
  vars: Map.t()
}

Link to this section Functions

Link to this function

get_in(context, key, scopes)

get_in(t(), [term()], [scope()]) :: term()

Get data from context respecting the scope order provided.

Possible scope values: :counter_vars or :vars