Initial draft of templating engine