leaf-kit icon indicating copy to clipboard operation
leaf-kit copied to clipboard

Consider supporting ranges in the template loop tag

Open fwgreen opened this issue 2 years ago • 0 comments

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)

fwgreen avatar Jan 15 '22 17:01 fwgreen