created simple built in templating engine