View Source Slime.Parser.EmbeddedEngine behaviour (slime v1.3.1)

Embedded engine behaviour module. Provides basic logic of parsing slime with embedded parts for other engines.

Summary

Types

@type engine_input() :: [binary() | {:eex, binary()}]
@type parser_tag() ::
  binary()
  | {binary(), Keyword.t()}
  | %Slime.Parser.Nodes.EExNode{
      children: term(),
      content: term(),
      output: term(),
      safe?: term(),
      spaces: term()
    }

Callbacks

@callback render(engine_input(), Keyword.t()) :: parser_tag()

Functions