Literature.StaticPages.Templates behaviour
(literature v0.5.1)
Copy Markdown
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_author_page(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 show_tag_page(assigns :: map()) :: Phoenix.LiveView.Rendered.t()
@callback tags(assigns :: map()) :: Phoenix.LiveView.Rendered.t()