Solid.Argument (solid v1.0.0-rc.0)

View Source

Summary

Types

Functions

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

@spec get(t(), Solid.Context.t(), [Solid.Filter.t()], Keyword.t()) ::
  {:ok, term(), Solid.Context.t()}

parse(tokens)

@spec parse(Solid.Lexer.tokens()) ::
  {:ok, t(), Solid.Lexer.tokens()} | {:error, binary(), Solid.Lexer.loc()}

parse_with_filters(tokens)

@spec parse_with_filters(Solid.Lexer.tokens()) ::
  {:ok, t(), [Solid.Filter.t()], Solid.Lexer.tokens()}
  | {:error, binary(), Solid.Lexer.loc()}

render(arg, context, filters, opts \\ [])

@spec render(t(), Solid.Context.t(), [Solid.Filter.t()], Keyword.t()) ::
  {:ok, binary(), Solid.Context.t()}

Similar to get/4 but outputs a printable representation