<% if (is_constructor) { %>
<%=constructor%>
<% } %> <% var fields = _.filter(things, function(item) { return item.itemtype === 'property' }); %> <% if (fields.length > 0) { %>

Fields

<% _.each(fields, function(item) { %> class="addon"<% } %> ><%=item.name%>: <%= item.description %>
<% }); %>

<% } %> <% var methods = _.filter(things, function(item) { return item.itemtype === 'method' }); %> <% if (methods.length > 0) { %>

Methods

<% _.each(methods, function(item) { %> class="addon"<% } %>><%=item.name%><% if (item.itemtype === 'method') { %>()<%}%>: <%= item.description %>
<% }); %>

<% } %>