view templating