Update templates.md

Added an example for reverse iterating Children; quite a few threads and sites recommend the creation of a custom function in the Child's controller which isn't accessible when looping over in a parent class.