% var options = { 'contains': 'contains', 'does-not-contain': 'does not contain', 'starts-with': 'starts with', 'ends-with': 'ends with', 'empty': 'is empty', 'not-empty': 'is not empty', }; %> <% _.each(options, function (option, key) { %> <% if (values.comp === key) { %> <%- option %> <% } else { %> <%- option %> <% } %> <% }); %>