Cringe.App behaviour (cringe v0.1.0)

Copy Markdown View Source

Behaviour and macro for Cringe applications.

Summary

Callbacks

handle_event(term, term)

@callback handle_event(term(), term()) :: {:noreply, term()} | {:stop, term()}

init(keyword)

@callback init(keyword()) :: {:ok, term()} | {:stop, term()}

render(term)

@callback render(term()) :: Cringe.Document.t()