Supervised runtime for Cringe apps.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type start_opt() :: {:app, module()} | {:opts, keyword()} | {:name, GenServer.name()} | {:backend, {module(), keyword()}} | Cringe.Renderer.render_opts()
Functions
@spec backend_state(GenServer.server()) :: term()
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec dispatch(GenServer.server(), term()) :: :ok
@spec paint(GenServer.server()) :: :ok | {:error, term()}
@spec start_link([start_opt()]) :: GenServer.on_start()
@spec state(GenServer.server()) :: term()
@spec text(GenServer.server()) :: String.t()