<% if (typeof constructor !== 'undefined') { %>
<%=constructor%>
<% } %> <% var fields = _.filter(things, function(item) { return item.itemtype === 'property' && item.access !== 'private' }); %> <% 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' && item.access !== 'private' }); %> <% if (methods.length > 0) { %>

Methods

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

<% } %>