Added a template method to do route reversing and a method to create a map directly into the templates.