A DOM object based templating engine