Add controller and action data-attrs to template