/branches/version1.x/templates/sweet/file.tmpl

http://jsdoc-toolkit.googlecode.com/ · Go Template · 364 lines · 332 code · 32 blank · 0 comment · 0 complexity · dd5d6272e816b922c5bc0d6aeaf6b4e4 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={+(JsDoc.opt.e||'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') && !symbol.isStatic">
  33. <div class="section constructor">
  34. <div class="itemTitle">
  35. <a name="{+symbol.alias+}"></a>
  36. <if test="symbol.deprecated"><span class="deprecated"><del></if>
  37. <if test="symbol.memberof">
  38. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}({+symbol.signature()+})
  39. </if>
  40. <if test="!symbol.memberof">
  41. {+symbol.alias+}(<span class="signature">{+symbol.signature()+}</span>)
  42. </if>
  43. <if test="symbol.deprecated"></del> deprecated {+symbol.deprecated.desc+}</span></if>
  44. </div>
  45. <if test="symbol.desc != 'undocumented'">
  46. <div class="desc">{+symbol.desc+}</div>
  47. </if>
  48. <if test="(!symbol.desc || symbol.desc == 'undocumented') && symbol.doc.getTag('class').length">
  49. <div class="desc">{+symbol.doc.getTag('class').shift().desc+}</div>
  50. </if>
  51. <if test="symbol.doc.getTag('version').length">
  52. <div>version: {+ symbol.doc.getTag('version').shift(); +}</div>
  53. </if>
  54. <for each="example" in="symbol.doc.getTag('example')">
  55. <pre class="code">{+example.desc+}</pre>
  56. </for>
  57. <if test="symbol.params.length">
  58. <div class="detailHead">parameters</div>
  59. <table class="params">
  60. <for each="param" in="symbol.params">
  61. <tr>
  62. <td class="type">
  63. {+linkToType(param.type)+}
  64. </td>
  65. <td>
  66. {+param.name+}<if test="param.isOptional"><a title="optional parameter" class="optional">?</a></if>
  67. <if test="param.defaultValue != ''"><span class="optional">= {+param.defaultValue+}</span></if>
  68. </td>
  69. <td>
  70. {+param.desc+}
  71. </td>
  72. </tr>
  73. </for>
  74. </table>
  75. </if>
  76. <if test="symbol.methods.length">
  77. <div class="detailHead">methods</div>
  78. <for each="method" in="symbol.methods">
  79. <ul class="details">
  80. <li><a href="#{+method.alias+}">{+method.name+}</a>({+method.signature()+})</li>
  81. </ul>
  82. </for>
  83. </if>
  84. <if test="symbol.properties.length">
  85. <div class="detailHead">properties</div>
  86. <for each="property" in="symbol.properties">
  87. <ul class="details">
  88. <li><if test="property.type"><span class="type">{+property.type+}</span> </if><a href="#{+property.alias+}">{+property.name+}</a><if test="property.desc"> {+property.desc+}</if></li>
  89. </ul>
  90. </for>
  91. </if>
  92. <if test="symbol.inherits.length || symbol.augments.length">
  93. <div class="detailHead">inherits</div>
  94. <for each="method" in="symbol.getInheritedMethods()">
  95. <div>{+method.name+}(<span class="signature">{+method.signature()+}</span>) from {+method.memberof+}</div>
  96. </for>
  97. </if>
  98. <if test="symbol.exceptions.length">
  99. <div class="detailHead">exceptions</div>
  100. <table class="params">
  101. <for each="ex" in="symbol.exceptions">
  102. <tr>
  103. <td class="type">
  104. {+linkToType(ex.type)+}
  105. </td>
  106. <td>
  107. {+ex.desc+}
  108. </td>
  109. </tr>
  110. </for>
  111. </table>
  112. </if>
  113. </div>
  114. </if>
  115. </for>
  116. <div class="sectionHead">Namespaces</div>
  117. <for each="symbol" in="data.symbols">
  118. <if test="symbol.is('CONSTRUCTOR') && symbol.isStatic">
  119. <div class="section object">
  120. <div class="itemTitle">
  121. <a name="{+symbol.alias+}"></a>
  122. <if test="symbol.deprecated"><span class="deprecated"><del></if>
  123. <if test="symbol.memberof">
  124. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}({+symbol.signature()+})
  125. </if>
  126. <if test="!symbol.memberof">
  127. {+symbol.alias+}
  128. </if>
  129. <if test="symbol.deprecated"></del> deprecated {+symbol.deprecated.desc+}</span></if>
  130. </div>
  131. <if test="symbol.desc != 'undocumented'">
  132. <div class="desc">{+symbol.desc+}</div>
  133. </if>
  134. <if test="(!symbol.desc || symbol.desc == 'undocumented') && symbol.doc.getTag('class').length">
  135. <div class="desc">{+symbol.doc.getTag('class').shift().desc+}</div>
  136. </if>
  137. <if test="symbol.doc.getTag('version').length">
  138. <div>version: {+ symbol.doc.getTag('version').shift(); +}</div>
  139. </if>
  140. <for each="example" in="symbol.doc.getTag('example')">
  141. <pre class="code">{+example.desc+}</pre>
  142. </for>
  143. <if test="symbol.params.length">
  144. <div class="detailHead">parameters</div>
  145. <table class="params">
  146. <for each="param" in="symbol.params">
  147. <tr>
  148. <td class="type">
  149. {+linkToType(param.type)+}
  150. </td>
  151. <td>
  152. {+param.name+}<if test="param.isOptional"><a title="optional parameter" class="optional">?</a></if>
  153. <if test="param.defaultValue != ''"><span class="optional">= {+param.defaultValue+}</span></if>
  154. </td>
  155. <td>
  156. {+param.desc+}
  157. </td>
  158. </tr>
  159. </for>
  160. </table>
  161. </if>
  162. <if test="symbol.methods.length">
  163. <div class="detailHead">methods</div>
  164. <for each="method" in="symbol.methods">
  165. <ul class="details">
  166. <li><a href="#{+method.alias+}">{+method.name+}</a>({+method.signature()+})</li>
  167. </ul>
  168. </for>
  169. </if>
  170. <if test="symbol.properties.length">
  171. <div class="detailHead">properties</div>
  172. <for each="property" in="symbol.properties">
  173. <ul class="details">
  174. <li><if test="property.type"><span class="type">{+property.type+}</span> </if><a href="#{+property.alias+}">{+property.name+}</a></li>
  175. </ul>
  176. </for>
  177. </if>
  178. <if test="symbol.inherits.length || symbol.augments.length">
  179. <div class="detailHead">inherits</div>
  180. <for each="method" in="symbol.getInheritedMethods()">
  181. <div>{+method.name+}(<span class="signature">{+method.signature()+}</span>) from {+method.memberof+}</div>
  182. </for>
  183. </if>
  184. <if test="symbol.exceptions.length">
  185. <div class="detailHead">exceptions</div>
  186. <table class="params">
  187. <for each="ex" in="symbol.exceptions">
  188. <tr>
  189. <td class="type">
  190. {+linkToType(ex.type)+}
  191. </td>
  192. <td>
  193. {+ex.desc+}
  194. </td>
  195. </tr>
  196. </for>
  197. </table>
  198. </if>
  199. </div>
  200. </if>
  201. </for>
  202. <div class="sectionHead">Functions</div>
  203. <for each="symbol" in="data.symbols">
  204. <if test="symbol.is('FUNCTION')">
  205. <div class="section function">
  206. <div class="itemTitle">
  207. <a name="{+symbol.alias+}"></a>
  208. <if test="symbol.deprecated"><span class="deprecated"><del></if>
  209. <if test="symbol.memberof">
  210. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}(<span class="signature">{+symbol.signature()+}</span>)
  211. </if>
  212. <if test="!symbol.memberof">
  213. {+symbol.alias+}(<span class="signature">{+symbol.signature()+}</span>)
  214. </if>
  215. <if test="symbol.deprecated"></del> deprecated {+symbol.deprecated.desc+}</span></if>
  216. </div>
  217. <if test="symbol.desc != 'undocumented'">
  218. <div class="desc">{+symbol.desc+}</div>
  219. </if>
  220. <if test="symbol.doc.getTag('since').length">
  221. <div>since: {+ symbol.doc.getTag('since').shift(); +}</div>
  222. </if>
  223. <for each="example" in="symbol.doc.getTag('example')">
  224. <pre class="code">{+example.desc+}</pre>
  225. </for>
  226. <if test="symbol.params.length">
  227. <div class="detailHead">parameters</div>
  228. <table class="params">
  229. <for each="param" in="symbol.params">
  230. <tr>
  231. <td class="type">
  232. {+linkToType(param.type)+}
  233. </td>
  234. <td>
  235. {+param.name+}<if test="param.isOptional"><a title="optional parameter" class="optional">?</a></if>
  236. <if test="param.defaultValue != ''"><span class="optional">= {+param.defaultValue+}</span></if>
  237. </td>
  238. <td>
  239. {+param.desc+}
  240. </td>
  241. </tr>
  242. </for>
  243. </table>
  244. </if>
  245. <if test="symbol.returns.length">
  246. <div class="detailHead">returns</div>
  247. <table class="params">
  248. <for each="ret" in="symbol.returns">
  249. <tr>
  250. <td class="type">
  251. {+linkToType(ret.type)+}
  252. </td>
  253. <td>
  254. {+ret.desc+}
  255. </td>
  256. </tr>
  257. </for>
  258. </table>
  259. </if>
  260. <if test="symbol.exceptions.length">
  261. <div class="detailHead">exceptions</div>
  262. <table class="params">
  263. <for each="ex" in="symbol.exceptions">
  264. <tr>
  265. <td class="type">
  266. {+linkToType(ex.type)+}
  267. </td>
  268. <td>
  269. {+ex.desc+}
  270. </td>
  271. </tr>
  272. </for>
  273. </table>
  274. </if>
  275. </div>
  276. </if>
  277. </for>
  278. <div class="sectionHead">Objects</div>
  279. <for each="symbol" in="data.symbols">
  280. <if test="symbol.is('OBJECT')">
  281. <div class="section object">
  282. <div class="itemTitle">
  283. <a name="{+symbol.alias+}"></a>
  284. <if test="symbol.type">
  285. <span class="type">{+symbol.type+}</span>
  286. </if>
  287. <if test="symbol.deprecated"><span class="deprecated"><del></if>
  288. <if test="symbol.memberof">
  289. <i><a href="#{+symbol.memberof+}" class="type">{+symbol.memberof+}.</a></i>{+symbol.name+}
  290. </if>
  291. <if test="!symbol.memberof">
  292. {+symbol.alias+}
  293. </if>
  294. <if test="symbol.deprecated"></del> deprecated {+symbol.deprecated.desc+}</span></if>
  295. </div>
  296. <if test="symbol.desc != 'undocumented'">
  297. <div class="desc">{+symbol.desc+}</div>
  298. </if>
  299. <if test="symbol.doc.getTag('since').length">
  300. <div>since: {+ symbol.doc.getTag('since').shift(); +}</div>
  301. </if>
  302. <for each="example" in="symbol.doc.getTag('example')">
  303. <pre class="code">{+example.desc+}</pre>
  304. </for>
  305. <if test="symbol.properties.length">
  306. <div class="detailHead">properties</div>
  307. <table class="params">
  308. <for each="property" in="symbol.properties">
  309. <tr>
  310. <td class="type">
  311. {+linkToType(property.type)+}
  312. </td>
  313. <td>
  314. {+property.name+}
  315. </td>
  316. <td>
  317. {+property.desc+}
  318. </td>
  319. </tr>
  320. </for>
  321. </table>
  322. </if>
  323. </div>
  324. </if>
  325. </for>
  326. </div>
  327. </div>
  328. <div class="finePrint">
  329. Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> {+JsDoc.VERSION+} on {+new Date().toUTCString()+}.
  330. </div>
  331. </body>
  332. </html>