First pass at a basic templating engine