A templating engine based on DOM