members.tmpl 1.0 KB

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