First draft of the templating system