View Source Solid.Argument (solid v0.17.1)

An Argument can be a field that will be inside the context or a value (String, Integer, etc)

Summary

Functions

Link to this function

get(arg, context, opts \\ [])

View Source
@spec get(
  [{:field, [String.t() | integer()]}] | [{:value, term()}],
  Solid.Context.t(),
  Keyword.t()
) ::
  {:ok, term(), Solid.Context.t()}
Link to this function

parse_named_arguments(ast, context, opts \\ [])

View Source
@spec parse_named_arguments(list(), Solid.Context.t(), Keyword.t()) ::
  {:ok, list(), Solid.Context.t()}