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

authors(assigns)

(optional)
@callback authors(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

index(assigns)

(optional)
@callback index(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

index_page(assigns)

(optional)
@callback index_page(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

show_author(assigns)

(optional)
@callback show_author(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

show_post(assigns)

(optional)
@callback show_post(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

show_tag(assigns)

(optional)
@callback show_tag(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

tags(assigns)

(optional)
@callback tags(assigns :: map()) :: Phoenix.LiveView.Rendered.t()

Functions

authors(assigns)

index(assigns)

index_page(assigns)

show_author(assigns)

show_post(assigns)

show_tag(assigns)

tags(assigns)