% int dotCount = docPackage.name.count('.') String pathPref = '../' * (dotCount + 1) %>
Overview
Package
Class
Index
Package ${docPackage.name}
<% if (docPackage.docTypes.any { it.interface }) { %>
Interfaces
<% docPackage.docTypes.findAll { it.interface }.each { docType -> %>
${docType.simpleClassName}
<% } %>
<% } %> <% if (docPackage.docTypes.any { !it.interface }) { %>
Classes
<% docPackage.docTypes.findAll { !it.interface }.each { docType -> %>
${docType.simpleClassName}
<% } %>
<% } %>
Overview
Package
Class
Index