---
title: "paginate"

doc_type: static
doc_category: static
doc_version: v20260901
source_url:
  html: 'https://developer.shopline.com/docs/handlebars/helpers/iteration/paginate'
  md: 'https://developer.shopline.com/docs/handlebars/helpers/iteration/paginate.md'
---


# paginate

Pagination of arrays

## Params

- `array` - Array to paginate
- `hash.by` `{Number}` Number per page, required
- `returns` `{Object}` Paginate object


## Usage

```handlebars
{{#paginate array by=page_size}}
  {{#each array as |item|}}
    {{item}}
  {{/each}}
{{/paginate}}
```

## Example

<Example data={[{ paginate: 'collection.products.{title}' }]}>
```handlebars
{{#paginate collection.products by=5}}
  {{#each collection.products as |product|}}
    {{ product.title }}
  {{/each}}
{{/paginate}}
```
</Example>

### paginate object

The paginate object can be accessed in the block context as `paginate` helper

> Note: The paginate object is not available outside the block context.
