In a django template I have a <select> element with something like:
<option value="0">0</option>
<option value="10">10</option>
<option value="15">20</option>
<option value="30">30</option>
<option value="45">45</option>
<option value="60">60</option>
It's rather ugly and redundant to list out this big mess, I'd like to do something like :
{% for i in list(0, 10, 20, 30, 45, 60) %}
<option value="{{i}}">{{i}}</option>
{% for %}
I suppose I could just put these variables in a context variable, but I don't want to involve the view here, it seems like the kind of thing that should stay at the template level.