View Source PlausibleWeb.Plugins.API.Views.Pagination (Plausible v0.0.1)

A view capable of rendering pagination metadata included in responses containing lists of objects.

Summary

Functions

The resource name, as an atom, for this view

Renders the given template locally.

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.

Functions

The resource name, as an atom, for this view

Link to this function

render(template, assigns \\ %{})

View Source
@spec render(binary(), map()) :: binary()

Renders the given template locally.

Link to this function

render_metadata_links(meta, helper_fn, helper_fn_args, existing_params \\ %{})

View Source
Link to this function

template_not_found(template, assigns)

View Source
@spec template_not_found(binary(), map()) :: no_return()

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.