Literature.StaticPages.Helpers (literature v0.4.21)
Provides helper functions for the static pages generator in Literature.
Summary
Functions
Wrapper around Task.async_stream/3
to returns only the result of the task
Checks if the given module has the specified template function. Raises an error if the template is not found.
Types
Functions
@spec async!(Enumerable.t(), (term() -> term()), [async_opt()]) :: [term()]
Wrapper around Task.async_stream/3
to returns only the result of the task
Checks if the given module has the specified template function. Raises an error if the template is not found.
@spec get_publication!(String.t()) :: Literature.Publication.t()
@spec paginate_published_posts(String.t(), integer(), integer(), map()) :: Literature.Pagination.Page.t()