backend templating