Si.views.management = function () { var tpl = Si.loadTemplate(Routes.management_tpl_path()), temp_tpl = Si.loadTemplate(Routes.temperature_tpl_path()), controllers = Si.collections.Controller; ; var temps = ''; controllers.each(function(controller) { if(controller.get('type') == 'temperature') { temps += _.template(temp_tpl, controller.toJSON()); } }); var fulfilled = _.template(tpl, { temperatures: temps }); return { el: $(fulfilled), init: function(urlObj, options) { var self = this; } } };