lets say i am passing a variable "subtotal" inside a template using ..

in my views.py

```
subtotal = 0
page_vars = Context({
    'players': players,
    'subtotal': subtotal,
})

```

in my html.

```
{% for player in players %}
{% subtotal += player.score %}

{{ player.name }} <td />
{{ player.score }} <td />

{% endfor %}
{{ subtotal }}

```

it gives me 

Invalid block tag: 'subtotal', expected 'empty' or 'endfor'

can't we have nested block tags in django templating system?

if yes, how?

there must be, as for me to calculate subtotal, i would have to calulate my subtotal, i have to run the same for loop at two places, which makes it highly ineffecient!

//mouse.