| 1 |
<?js |
| 2 |
var data = obj; |
| 3 |
var self = this; |
| 4 |
?> |
| 5 |
<h4 class="name" id="<?js= id ?>"><?js= data.attribs + name + (data.signature ? data.signature : '') ?> |
| 6 |
<a class="anchor" href="#<?js= id ?>">♯</a> |
| 7 |
</h4> |
| 8 |
|
| 9 |
<?js if (data.summary) { ?> |
| 10 |
<p class="summary"><?js= data.summary ?></p> |
| 11 |
<?js } ?> |
| 12 |
|
| 13 |
<?js if (data.description) { ?> |
| 14 |
<div class="description"> |
| 15 |
<?js= data.description ?> |
| 16 |
</div> |
| 17 |
<?js } ?> |
| 18 |
|
| 19 |
<?js if (data.type && data.type.names) {?> |
| 20 |
<h5>Type</h5> |
| 21 |
<ul> |
| 22 |
<li> |
| 23 |
<?js= self.partial('type.tmpl', data.type.names) ?> |
| 24 |
</li> |
| 25 |
</ul> |
| 26 |
<?js } ?> |
| 27 |
|
| 28 |
<?js= this.partial('details.tmpl', data) ?> |
| 29 |
|
| 30 |
<?js if (data.fires && fires.length) { ?> |
| 31 |
<h5>Fires</h5> |
| 32 |
<ul><?js fires.forEach(function(f) { ?> |
| 33 |
<li><?js= self.linkto(f) ?></li> |
| 34 |
<?js }); ?></ul> |
| 35 |
<?js } ?> |
| 36 |
|
| 37 |
<?js if (data.examples && examples.length) { ?> |
| 38 |
<h5>Example<?js= examples.length > 1? 's':'' ?></h5> |
| 39 |
<?js= this.partial('examples.tmpl', examples) ?> |
| 40 |
<?js } ?> |