Next

Use the next helper to select the next item in a list; you must pass an array as the first argument and the current item as the second argument. It is an error if the current item does not exist in the list.

Arguments

Example

If there is no next item available the block is not rendered.

{{#next list item}}
{{! This block is set to the scope of the next item in the list }}
{{/next}}

See the next page partial which uses this helper to create a link to the next item in a menu.

warn

You should only use this helper with lists that do not contain duplicate values.

Back to Helpers