templating documentation

There wasn't any documentation on how to display a collection of things in a template, so after some trial and error, I wrote up an example since others might right into similar problems.