Doing the hard work

Handling all of the template retrieving and parsing