gandalf v0.2.0 Gandalf.Renderer behaviour

A behaviour for all renderer modules called by other gandalf modules.

Creating a custom module

If you are going to create a custom renderer module, then you need to implement following function:

  • render

Summary

Callbacks

Puts response body inside Plug.Conn and returns Plug.Conn

Callbacks

render(atom, atom, atom)
render(Plug.Conn, Atom, Map) :: Plug.Conn

Puts response body inside Plug.Conn and returns Plug.Conn