I want to use {{#has any="prev, next"}}
to prevent the {{pagination}} from rendering when there is no prev or next, e.g., a single page, but it never renders when using has
.
When I use {{ log prev }}
and {{ log next }},
they return 1
and null
, as expected if you’re on the first page and there’s more.
According to the docs, the any
comparison will return true if any one of the properties is set in the current context, with support for paths and globals.
Am I missing something?
pagination.hbs: