<% var counter = 0 %> <% var option_groups = {} %> <% _.each(form_options, function(opt, name) { if(!option_groups[opt.grp]) { option_groups[opt.grp] = {} } option_groups[opt.grp][name] = opt }) %>
<% _.each(Object.fromEntries(Object.entries(option_groups).sort()), function(each_opt, opt_grp) { %>
<% _.each(each_opt, function(opt, name) { %>
<% counter += 1 %>
<% if(opt.help) { %> <% if(name !== 'font') { %> <%= opt.help %> <% } else { %> Supported Google fonts: Anton, Lato, Montserrat, Muli, Open Sans, Open Sans Condensed, Roboto, Roboto Condensed <% } %> <% } %>
<% }) %>
<% })%>