<% var httpMethodKeys = [ 'get','put','post','patch','delete','options','head' ]; %>
" class="path-panel panel panel-primary">

<%=key%> " aria-expanded="false" aria-controls="panel_<%=path["x-resourceId"]%>">

" class="collapse panel-body"> <%= renderXAttributes( path, 'h4' ) %>

Methods:

<% _.each( httpMethodKeys, function( methodKey ){ if( typeof( path[ methodKey ] ) !== 'undefined' ){ var methodTemplate = _.template( $( "#method-template" ).html() ); %> <%= methodTemplate( { "key":methodKey, "method":path[ methodKey ] } ) %> <% } }) %>