I've got a variable number of items, somewhere between 0 and 20.
I'd like to list these with Google Static Maps, showing a little "a" for the first one, a "b" for the second one and so on.
I'm a newbie using Google App Engine so I'm constrained to 0.96 (unless I use various patches, which I don't want to do. Because I'm a newbie.)
&markers={% for item in results %}{{item.latitude}},{{item.longitude}}{% if not forloop.last %}|{% endif %}{% endfor %}
is working fine to provide a list of red markers.
&markers={% for item in results %}{{item.latitude}},{{item.longitude}},{{forloop.counter0}}{% if not forloop.last %}|{% endif %}{% endfor %}
gets me 0-9 on the map.
For now, I've cut the result set down to 10. I'd like to go back to 20. Is there a way of using the loopcounter and slice (as in {{ alpha_list|slice:":loop_counter"}} ? I struggled with various incantations, trying {{ }} around loop_counter and without and couldn't get it to work.
Thanks!