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