Solid.Tag behaviour (solid v1.0.0-rc.0)

View Source

Summary

Callbacks

parse(tag_name, t, t)

@callback parse(
  tag_name :: binary(),
  Solid.Parser.Loc.t(),
  Solid.ParserContext.t()
) ::
  {:ok, Solid.Renderable.t(), Solid.ParserContext.t()}
  | {:error, reason :: binary(), Solid.Lexer.loc()}

Functions

default_tags()

parse(tag_name, loc, context)

@spec parse(tag_name :: binary(), Solid.Parser.Loc.t(), Solid.ParserContext.t()) ::
  {:ok, Solid.Renderable.t(), Solid.ParserContext.t()}
  | {:error, reason :: binary(), Solid.Lexer.loc()}