cecco974 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Feature request: Multiple examples support #141

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add multiple @example tags to a method

What is the expected output? What do you see instead?
symbol should have an array of examples. Currently, symbol has only one 
example

What version of the product are you using? On what operating system?
2.0, XP SP2

Please provide any additional information below.

Original issue reported on code.google.com by herz...@gmail.com on 27 May 2008 at 11:58

GoogleCodeExporter commented 8 years ago
I assume you are referring to the output of "jsdoc" template. In fact you can 
get an array of examples from a 
symbol very easily, just add the following to your own template:

<for each="example" in="someSymbolHere.comment.getTag('example')">
    <pre>{+ example +}</pre>
</for>

Since you have this option, and I encourage people to customize their own 
templates, I'm not going to modify 
the jsdoc template.

Original comment by micmath on 27 May 2008 at 6:14