Fix my dumb-butt untested template parser