3 docs.forEach(function(doc, i) {
6 <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
7 <?js= self.partial('mainpage.tmpl', doc) ?>
8 <?js } else if (doc.kind === 'source') { ?>
9 <?js= self.partial('source.tmpl', doc) ?>
15 <h2><?js if (doc.ancestors && doc.ancestors.length) { ?>
16 <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
19 <?js if (doc.variation) { ?>
20 <sup class="variation"><?js= doc.variation ?></sup>
22 <?js if (doc.classdesc) { ?>
23 <div class="class-description"><?js= doc.classdesc ?></div>
28 <div class="container-overview">
29 <?js if (doc.kind === 'module' && doc.module) { ?>
30 <?js= self.partial('method.tmpl', doc.module) ?>
33 <?js if (doc.kind === 'class') { ?>
34 <?js= self.partial('method.tmpl', doc) ?>
36 <?js if (doc.description) { ?>
37 <div class="description"><?js= doc.description ?></div>
40 <?js= self.partial('details.tmpl', doc) ?>
42 <?js if (doc.examples && doc.examples.length) { ?>
43 <h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
44 <?js= self.partial('examples.tmpl', doc.examples) ?>
49 <?js if (doc.augments && doc.augments.length) { ?>
50 <h3 class="subsection-title">Extends</h3>
52 <ul><?js doc.augments.forEach(function(a) { ?>
53 <li><?js= self.linkto(a, a) ?></li>
57 <?js if (doc.mixes && doc.mixes.length) { ?>
58 <h3 class="subsection-title">Mixes In</h3>
60 <ul><?js doc.mixes.forEach(function(a) { ?>
61 <li><?js= self.linkto(a, a) ?></li>
65 <?js if (doc.requires && doc.requires.length) { ?>
66 <h3 class="subsection-title">Requires</h3>
68 <ul><?js doc.requires.forEach(function(r) { ?>
69 <li><?js= self.linkto(r, r) ?></li>
74 var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
75 if (doc.kind !== 'globalobj' && namespaces && namespaces.length) {
77 <h3 class="subsection-title">Namesplaces</h3>
79 <dl><?js namespaces.forEach(function(n) { ?>
80 <dt><a href="namespaces.html#<?js= n.longname ?>"><?js= self.linkto(n.longname, n.name) ?></a></dt>
81 <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
86 var classes = self.find({kind: 'class', memberof: doc.longname});
87 if (doc.kind !== 'globalobj' && classes && classes.length) {
89 <h3 class="subsection-title">Classes</h3>
91 <dl><?js classes.forEach(function(c) { ?>
92 <dt><?js= self.linkto(c.longname, c.longname) ?></dt>
93 <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
98 var members = self.find({kind: 'member', memberof: title === 'Global' ? {isUndefined: true} : doc.longname});
99 if (members && members.length && members.forEach) {
101 <h3 class="subsection-title">Members</h3>
103 <dl><?js members.forEach(function(p) { ?>
104 <?js= self.partial('members.tmpl', p) ?>
109 var methods = self.find({kind: 'function', memberof: title === 'Global' ? {isUndefined: true} : doc.longname});
110 if (methods && methods.length && methods.forEach) {
112 <h3 class="subsection-title">Methods</h3>
114 <dl><?js methods.forEach(function(m) { ?>
115 <?js= self.partial('method.tmpl', m) ?>
120 var typedefs = self.find({kind: 'typedef', memberof: title === 'Global' ? {isUndefined: true} : doc.longname});
121 if (typedefs && typedefs.length && typedefs.forEach) {
123 <h3 class="subsection-title">Type Definitions</h3>
125 <dl><?js typedefs.forEach(function(e) {
128 <?js= self.partial('method.tmpl', e) ?>
133 <?js= self.partial('members.tmpl', e) ?>
140 var events = self.find({kind: 'event', memberof: title === 'Global' ? {isUndefined: true} : doc.longname});
141 if (events && events.length && events.forEach) {
143 <h3 class="subsection-title">Events</h3>
145 <dl><?js events.forEach(function(e) { ?>
146 <?js= self.partial('method.tmpl', e) ?>