Complete a very basic template parser