pub fn context(page: i64, per_page: usize, total: usize) -> ValueExpand description
Build the template context for the shared pagination partial.
page is 1-based and clamped into range, so an out-of-range ?page=
lands on the last page instead of rendering an empty list with dead
prev/next links.