| 1 |
<?js |
| 2 |
var data = obj; |
| 3 |
var self = this; |
| 4 |
?> |
| 5 |
|
| 6 |
<?js if (data.kind !== 'module') { ?> |
| 7 |
<?js if (data.kind === 'class' && data.classdesc) { ?> |
| 8 |
<h2>Constructor</h2> |
| 9 |
<?js } ?> |
| 10 |
|
| 11 |
<?js if (data.kind !== 'class') { ?> |
| 12 |
<h4 class="name" id="<?js= id ?>"><?js= data.attribs + name + (data.signature || '') ?> |
| 13 |
<a class="anchor" href="#<?js= id ?>">♯</a> |
| 14 |
</h4> |
| 15 |
<?js } ?> |
| 16 |
|
| 17 |
<?js if (data.summary) { if (data.kind === 'class') { ?> |
| 18 |
<div class="summary"><p><?js= data.summary ?></p></div> |
| 19 |
<?js } else { ?> |
| 20 |
<p class="summary"><?js= data.summary ?></p> |
| 21 |
<?js }} ?> |
| 22 |
<?js } ?> |
| 23 |
|
| 24 |
<?js if (data.kind !== 'module' && data.description) { ?> |
| 25 |
<div class="description"> |
| 26 |
<?js= data.description ?> |
| 27 |
</div> |
| 28 |
<?js } ?> |
| 29 |
|
| 30 |
<?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?> |
| 31 |
<h5>Extends</h5> |
| 32 |
<?js= self.partial('augments.tmpl', data) ?> |
| 33 |
<?js } ?> |
| 34 |
|
| 35 |
<?js if (kind === 'event' && data.type && data.type.names) {?> |
| 36 |
<h5>Type</h5> |
| 37 |
<ul> |
| 38 |
<li> |
| 39 |
<?js= self.partial('type.tmpl', data.type.names) ?> |
| 40 |
</li> |
| 41 |
</ul> |
| 42 |
<?js } ?> |
| 43 |
|
| 44 |
<?js if (data['this']) { ?> |
| 45 |
<h5>This</h5> |
| 46 |
<ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul> |
| 47 |
<?js } ?> |
| 48 |
|
| 49 |
<?js if (data.params && params.length) { ?> |
| 50 |
<h5>Parameters</h5> |
| 51 |
<?js= this.partial('params.tmpl', params) ?> |
| 52 |
<?js } ?> |
| 53 |
|
| 54 |
<?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?> |
| 55 |
<h5>Requires</h5> |
| 56 |
<ul><?js data.requires.forEach(function(r) { ?> |
| 57 |
<li><?js= self.linkto(r) ?></li> |
| 58 |
<?js }); ?></ul> |
| 59 |
<?js } ?> |
| 60 |
|
| 61 |
<?js if (data.fires && fires.length) { ?> |
| 62 |
<h5>Fires</h5> |
| 63 |
<ul><?js fires.forEach(function(f) { ?> |
| 64 |
<li><?js= self.linkto(f) ?></li> |
| 65 |
<?js }); ?></ul> |
| 66 |
<?js } ?> |
| 67 |
|
| 68 |
<?js if (data.listens && listens.length) { ?> |
| 69 |
<h5>Events</h5> |
| 70 |
<ul><?js listens.forEach(function(f) { ?> |
| 71 |
<li><?js= self.linkto(f) ?></li> |
| 72 |
<?js }); ?></ul> |
| 73 |
<?js } ?> |
| 74 |
|
| 75 |
<?js if (data.listeners && listeners.length) { ?> |
| 76 |
<h5>Listeners</h5> |
| 77 |
<ul><?js listeners.forEach(function(f) { ?> |
| 78 |
<li><?js= self.linkto(f) ?></li> |
| 79 |
<?js }); ?></ul> |
| 80 |
<?js } ?> |
| 81 |
|
| 82 |
<?js if (data.exceptions && exceptions.length) { ?> |
| 83 |
<h5>Throws</h5> |
| 84 |
<?js if (exceptions.length > 1) { ?><ul><?js |
| 85 |
exceptions.forEach(function(r) { ?> |
| 86 |
<li><?js= self.partial('exceptions.tmpl', r) ?></li> |
| 87 |
<?js }); |
| 88 |
?></ul><?js } else { |
| 89 |
exceptions.forEach(function(r) { ?> |
| 90 |
<?js= self.partial('exceptions.tmpl', r) ?> |
| 91 |
<?js }); |
| 92 |
} } ?> |
| 93 |
|
| 94 |
<?js if (data.returns && returns.length) { ?> |
| 95 |
<h5>Returns</h5> |
| 96 |
<?js= this.partial('returns.tmpl',returns) ?><?js } ?> |
| 97 |
|
| 98 |
<?js if (data.examples && examples.length) { ?> |
| 99 |
<h5>Example<?js= examples.length > 1? 's':'' ?></h5> |
| 100 |
<?js= this.partial('examples.tmpl', examples) ?> |
| 101 |
<?js } ?> |
| 102 |
|
| 103 |
<?js= this.partial('details.tmpl', data) ?> |