A slightly more capable template parser, written as part of a technical evaluation.