﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1162	[patch] added range0, range1 filter	nkeric@…	Adrian Holovaty	"Hey guys,

I found it useful to have a range filter which acts (partly) like the python's range(), so I added this two filters: range0 - 0-index; range1 - 1-index.

It can be used like this (in a paginated page):

{% for page_number in pages|range1 %}
    <a href=""./?page={ forloop.counter0 }}"">{{ page_number }}</a>
{% endfor %}

Hope this patch is useful for other people too :)

"	enhancement	closed	Template system		normal	wontfix			Unreviewed	1	0	0	0	0	0
