Skip to content

Consider supporting ranges in the template loop tag #97

@fwgreen

Description

@fwgreen

I would like to be able to do this when paginating:

#for(i in 1...page_count):
 <li class="active"><a href="/items/list/?page=#(i)">#(i)</a></li>
 ...

My current workaround is to create a page count array inside the application:

let page_count = Array(1...items.pageCount)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions