members.tmpl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?js
  2. var data = obj;
  3. var self = this;
  4. ?>
  5. <dt>
  6. <h4 class="name" id="<?js= id ?>">
  7. <?js= data.attribs + name + (data.signature ? data.signature : '') ?>
  8. <?js if (data.meta && self.outputSourceFiles) {?>
  9. <br>
  10. <br>
  11. <div class="container-source members">
  12. <code><?js= self.linkto(meta.shortpath) ?></code>,
  13. <code><?js= self.linkto(meta.shortpath, 'line ' + meta.lineno, null, 'line' + meta.lineno) ?></code>
  14. </div>
  15. <?js } ?>
  16. </h4>
  17. <?js if (data.summary) { ?>
  18. <p class="summary"><?js= summary ?></p>
  19. <?js } ?>
  20. </dt>
  21. <dd>
  22. <?js if (data.description) { ?>
  23. <div class="description">
  24. <?js= data.description ?>
  25. </div>
  26. <?js } ?>
  27. <!--
  28. <?js if (data.type && data.type.names) {?>
  29. <h5>Type:</h5>
  30. <ul>
  31. <li>
  32. <?js= self.partial('type.tmpl', data.type.names) ?>
  33. </li>
  34. </ul>
  35. <?js } ?>
  36. -->
  37. <?js= this.partial('details.tmpl', data) ?>
  38. <?js if (data.fires && fires.length) { ?>
  39. <h5>Fires:</h5>
  40. <ul><?js fires.forEach(function(f) { ?>
  41. <li><?js= self.linkto(f) ?></li>
  42. <?js }); ?></ul>
  43. <?js } ?>
  44. <?js if (data.examples && examples.length) { ?>
  45. <h5>Example<?js= examples.length > 1? 's':'' ?></h5>
  46. <?js= this.partial('examples.tmpl', examples) ?>
  47. <?js } ?>
  48. </dd>
  49. <hr>