Chop a sequence in to a page.
This breaks up a sequence in to a page, based on a page size and index. Useful for paginating search results.
<page src="results" page="2" pagesize="10" />
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
dst |
Destination for slice | reference | Yes | ||
page |
Page | expression | No | .request.GET.page or 1 |
|
pagesize |
Page size | expression | No | 10 |
|
src |
Value to slice | reference | Yes |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
if |
Conditional expression | expression | No | yes |