<% _.each(actions, function (action) { var actionId = action.name.toLowerCase().replace(/[^\w]+/g, '-'); %> h2#<%= actionId %>.fn span.name <%= action.name %> span.args (params, [callback]) include _descriptions/<%= action.name %>.jade a.esdoc(href="<%= action.docUrl %>", title="<%= action.name %> at elasticsearch.org"). <%= action.docUrl %> p.tight. The default method is <%= action.spec.method || 'GET' %> and the usual params and return values apply. <% if (_.size(action.allParams)) { %> h3 Params: dl.params.api <% _.each(action.allParams, function (param, paramName) { %> dt: dfn: code <%= paramWithDefault(paramName, param.default) %> dd. <%= paramType(param.type) %> <%= indent(param.description || '', 4) %><% }); %> <% } %> include _examples/<%= action.name %>.jade<% }); %>