<% obj.attributesTemplate = function(attributes) { _.each(attributes, function(attribute, name) { %> <%- name %><% if (!_.isNull(attribute)) { %>="<%- attribute %>"<% } %> <% }); } %> <% actionClassNames = []; actionClassNames.push('action btn'); if (className) { actionClassNames.push(className); } if (launcherMode == 'icon-only') { actionClassNames.push('btn-icon'); } if (!enabled) { actionClassNames.push('disabled'); } if (launcherMode != '') { actionClassNames.push('mode-' + launcherMode); } actionClassNames.push('dropdown-toggle dropdown-toggle--no-caret'); %> <% var togglerId = _.uniqueId('dropdown-') %>