Adding templating to views