View Source Dragon.Plugin behaviour (dragon v1.1.2)

Dragon Plugin behavior. See Markdown and Redirects plugins for examples.

Link to this section Summary

Link to this section Callbacks

Link to this callback

run(t, originfile, buildfile, headers, content)

View Source
@callback run(
  Dragon.t(),
  originfile :: String.t(),
  buildfile :: String.t(),
  headers :: map(),
  content :: String.t()
) ::
  {:error, reason :: String.t()}
  | {:ok, buildfile :: String.t(), content :: String.t()}

Link to this section Functions

Link to this function

posteval(dragon, origin, target, headers, content)

View Source
@spec posteval(Dragon.t(), String.t(), String.t(), headers :: map(), String.t()) ::
  {:ok, String.t(), headers :: map(), String.t()}
Link to this function

posteval(d, o, t, h, c, list)

View Source