{# Reusable pagination navigation macro. Parameters: page (int): The current page number (1-based). total_pages (int): The total number of pages. page_urls (list[str]): Pre-computed list of page URLs, one per page (index 0 = page 1). Produced by the generator and available as the ``pagination_page_urls`` context variable. Example usage (from a template): {% from '_pagination.html' import pagination %} {{ pagination(page, total_pages, pagination_page_urls) }} #} {% macro pagination(page, total_pages, page_urls) %} {% if total_pages > 1 %} {% endif %} {% endmacro %}