% var operators = { "contains": "contains", "not-contains": "does not contain", "is-empty": "is empty", "is-not-empty": "is not empty" }; %> <% _.each(operators, function (option, key) { %> <% if (values.comp === key) { %> <%- option %> <% } else { %> <%- option %> <% } %> <% }); %> <% _.each(options, function (option) { %> <% if (parseInt(values.value, 10) === option.value) { %> <%- option.title %> <% } else { %> <%- option.title %> <% } %> <% }); %>