members.tmpl 911 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 : '') ?></h4>
  6. <?js if (data.summary) { ?>
  7. <p class="summary"><?js= summary ?></p>
  8. <?js } ?>
  9. <?js if (data.description) { ?>
  10. <div class="description">
  11. <?js= data.description ?>
  12. </div>
  13. <?js } ?>
  14. <?js if (data.type && data.type.names) {?>
  15. <h5>Type:</h5>
  16. <ul>
  17. <li>
  18. <?js= self.partial('type.tmpl', data.type.names) ?>
  19. </li>
  20. </ul>
  21. <?js } ?>
  22. <?js= this.partial('details.tmpl', data) ?>
  23. <?js if (data.fires && fires.length) { ?>
  24. <h5>Fires:</h5>
  25. <ul><?js fires.forEach(function(f) { ?>
  26. <li><?js= self.linkto(f) ?></li>
  27. <?js }); ?></ul>
  28. <?js } ?>
  29. <?js if (data.examples && examples.length) { ?>
  30. <h5>Example<?js= examples.length > 1? 's':'' ?></h5>
  31. <?js= this.partial('examples.tmpl', examples) ?>
  32. <?js } ?>