$def with(query, results, page=1) $if results and results.get('hits'): $ hits = results['hits'].get('hits', []) $ num_found = results['hits'].get('total', 0)
$:macros.Pager(page, num_found)