ivette/src/dome/doc/template/tmpl/returns.tmpl
raw| 1 | <?js var returns = obj; const self = this; ?> |
| 2 | |
| 3 | <table class="params"> |
| 4 | <thead> |
| 5 | <tr> |
| 6 | <th>Type</th> |
| 7 | <th class="last">Description</th> |
| 8 | </tr> |
| 9 | </thead> |
| 10 | <tbody> |
| 11 | <?js returns.forEach(function (r) { ?> |
| 12 | |
| 13 | <tr> |
| 14 | <td class="type"> |
| 15 | <?js if (r.type && r.type.names) { ?> |
| 16 | <?js= self.partial('type.tmpl', r.type.names) ?> |
| 17 | <?js } ?> |
| 18 | </td> |
| 19 | <td class="description last"> |
| 20 | <?js= r.description ?> |
| 21 | </td> |
| 22 | |
| 23 | <?js }); ?> |
| 24 | </tbody> |
| 25 | </table> |