It could be really great to integrate summary functions (including max, min, sum, average and concatenate) in the lists, for example :
[#items]
  • [name]: [quantity]
Total: [sum(items.quantity)]
[/items]
could produce:
  • Cars: 10
  • Trains: 20
Total: 30