/tags/jsdoc_toolkit-1.3.3/templates/sweet/file.tmpl

http://jsdoc-toolkit.googlecode.com/ · Go Template · 247 lines · 226 code · 21 blank · 0 comment · 0 complexity · ae0dd0861d6b8f079ba74ccf5486aff7 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  6. <meta name="generator" content="JsDoc Toolkit 1.0">
  7. <title>JsDoc: {+data.overview.name+}</title>
  8. <link rel=stylesheet href="default.css" type="text/css" media=screen>
  9. </head>
  10. <body>
  11. <div class="content">
  12. <div class="docs">
  13. <div class="sectionHead">Library: {+(data.overview.name||data.filename)+}</div>
  14. <div class="section overview">
  15. <div class="itemTitle">
  16. Overview
  17. </div>
  18. <div>
  19. <div class="desc">{+data.overview.desc+}</div>
  20. <div class="itemTags">
  21. <ul>
  22. <if test="data.source"><li>source: <a href="{+data.source+}">{+data.filename+}</a></li></if>
  23. <for each="tag" in="data.overview.doc.tags">
  24. <li>{+tag.title+}: {+tag.desc+}</li>
  25. </for>
  26. </ul>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="sectionHead">Constructors</div>
  31. <for each="symbol" in="data.symbols">
  32. <if test="symbol.is('CONSTRUCTOR')">
  33. <div class="section constructor">
  34. <div class="itemTitle">
  35. <a name="{+symbol.alias+}"></a>
  36. <if test="symbol.memberof">
  37. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}({+symbol.signature()+})
  38. </if>
  39. <if test="!symbol.memberof">
  40. {+symbol.alias+}(<span class="signature">{+symbol.signature()+}</span>)
  41. </if>
  42. </div>
  43. <if test="symbol.desc != 'undocumented'">
  44. <div class="desc">{+symbol.desc+}</div>
  45. </if>
  46. <for each="example" in="symbol.doc.getTag('example')">
  47. <pre class="code">{+example.desc+}</pre>
  48. </for>
  49. <if test="symbol.params.length">
  50. <div class="detailHead">parameters</div>
  51. <table class="params">
  52. <for each="param" in="symbol.params">
  53. <tr>
  54. <td class="type">
  55. {+param.type+}
  56. </td>
  57. <td>
  58. {+param.name+}<if test="param.isOptional"><a title="optional parameter" class="type">?</a></if>
  59. </td>
  60. <td>
  61. {+param.desc+}
  62. </td>
  63. </tr>
  64. </for>
  65. </table>
  66. </if>
  67. <if test="symbol.methods.length">
  68. <div class="detailHead">methods</div>
  69. <for each="method" in="symbol.methods">
  70. <ul class="details">
  71. <li><a href="#{+method.alias+}">{+method.name+}</a>({+method.signature()+})</li>
  72. </ul>
  73. </for>
  74. </if>
  75. <if test="symbol.properties.length">
  76. <div class="detailHead">properties</div>
  77. <for each="property" in="symbol.properties">
  78. <ul class="details">
  79. <li><if test="property.type"><span class="type">{+property.type+}</span> </if><a href="#{+property.alias+}">{+property.name+}</a></li>
  80. </ul>
  81. </for>
  82. </if>
  83. <if test="symbol.inherits.length || symbol.augments.length">
  84. <div class="detailHead">inherits</div>
  85. <for each="method" in="symbol.getInheritedMethods()">
  86. <div>{+method.name+}(<span class="signature">{+method.signature()+}</span>) from {+method.memberof+}</div>
  87. </for>
  88. </if>
  89. <if test="symbol.exceptions.length">
  90. <div class="detailHead">exceptions</div>
  91. <table class="params">
  92. <for each="ex" in="symbol.exceptions">
  93. <tr>
  94. <td class="type">
  95. {+ex.type+}
  96. </td>
  97. <td>
  98. {+ex.desc+}
  99. </td>
  100. </tr>
  101. </for>
  102. </table>
  103. </if>
  104. </div>
  105. </if>
  106. </for>
  107. <div class="sectionHead">Functions</div>
  108. <for each="symbol" in="data.symbols">
  109. <if test="symbol.is('FUNCTION')">
  110. <div class="section function">
  111. <div class="itemTitle">
  112. <a name="{+symbol.alias+}"></a>
  113. <if test="symbol.memberof">
  114. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}(<span class="signature">{+symbol.signature()+}</span>)
  115. </if>
  116. <if test="!symbol.memberof">
  117. {+symbol.alias+}(<span class="signature">{+symbol.signature()+}</span>)
  118. </if>
  119. </div>
  120. <if test="symbol.desc != 'undocumented'">
  121. <div class="desc">{+symbol.desc+}</div>
  122. </if>
  123. <for each="example" in="symbol.doc.getTag('example')">
  124. <pre class="code">{+example.desc+}</pre>
  125. </for>
  126. <if test="symbol.params.length">
  127. <div class="detailHead">parameters</div>
  128. <table class="params">
  129. <for each="param" in="symbol.params">
  130. <tr>
  131. <td class="type">
  132. {+param.type+}
  133. </td>
  134. <td>
  135. {+param.name+}<if test="param.isOptional"><a title="optional parameter" class="type">?</a></if>
  136. </td>
  137. <td>
  138. {+param.desc+}
  139. </td>
  140. </tr>
  141. </for>
  142. </table>
  143. </if>
  144. <if test="symbol.returns.length">
  145. <div class="detailHead">returns</div>
  146. <table class="params">
  147. <for each="ret" in="symbol.returns">
  148. <tr>
  149. <td class="type">
  150. {+ret.type+}
  151. </td>
  152. <td>
  153. {+ret.desc+}
  154. </td>
  155. </tr>
  156. </for>
  157. </table>
  158. </if>
  159. <if test="symbol.exceptions.length">
  160. <div class="detailHead">exceptions</div>
  161. <table class="params">
  162. <for each="ex" in="symbol.exceptions">
  163. <tr>
  164. <td class="type">
  165. {+ex.type+}
  166. </td>
  167. <td>
  168. {+ex.desc+}
  169. </td>
  170. </tr>
  171. </for>
  172. </table>
  173. </if>
  174. </div>
  175. </if>
  176. </for>
  177. <div class="sectionHead">Objects</div>
  178. <for each="symbol" in="data.symbols">
  179. <if test="symbol.is('OBJECT')">
  180. <div class="section object">
  181. <div class="itemTitle">
  182. <a name="{+symbol.alias+}"></a>
  183. <if test="symbol.type">
  184. <span class="type">{+symbol.type+}</span>
  185. </if>
  186. <if test="symbol.memberof">
  187. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}
  188. </if>
  189. <if test="!symbol.memberof">
  190. {+symbol.alias+}
  191. </if>
  192. </div>
  193. <if test="symbol.desc != 'undocumented'">
  194. <div class="desc">{+symbol.desc+}</div>
  195. </if>
  196. <for each="example" in="symbol.doc.getTag('example')">
  197. <pre class="code">{+example.desc+}</pre>
  198. </for>
  199. <if test="symbol.properties.length">
  200. <div class="detailHead">properties</div>
  201. <table class="params">
  202. <for each="property" in="symbol.properties">
  203. <tr>
  204. <td class="type">
  205. {+property.type+}
  206. </td>
  207. <td>
  208. {+property.name+}
  209. </td>
  210. <td>
  211. {+property.desc+}
  212. </td>
  213. </tr>
  214. </for>
  215. </table>
  216. </if>
  217. </div>
  218. </if>
  219. </for>
  220. </div>
  221. </div>
  222. <div class="finePrint">
  223. Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> {+JsDoc.VERSION+} on {+new Date().toUTCString()+}.
  224. </div>
  225. </body>
  226. </html>