controller logic, templating