An element based templating engine