Literature.StaticPages.Templates behaviour (literature v0.4.21)
Behaviour for the templates
opt for Literature.StaticPages.Generator
.
Contains the Phoenix.Component
callbacks for all Generator.page_types()
.
Also contains placeholder implementations for each page type.
Summary
Callbacks
@callback authors(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback index(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback index_page(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback show_author(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback show_post(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback show_tag(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback tags(assigns :: map()) :: Phoenix.LiveView.Rendered.t()