mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
Add support for examples in API description section
This commit is contained in:
parent
fff2a15960
commit
233a1528df
1 changed files with 7 additions and 1 deletions
|
@ -92,7 +92,13 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?js= self.partial('details.tmpl', doc) ?>
|
|
||||||
|
<?js= self.partial('details.tmpl', doc) ?>
|
||||||
|
|
||||||
|
<?js if (doc.examples && doc.examples.length) { ?>
|
||||||
|
<h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
|
||||||
|
<?js= self.partial('examples.tmpl', doc.examples) ?>
|
||||||
|
<?js } ?>
|
||||||
|
|
||||||
<?js } else { ?>
|
<?js } else { ?>
|
||||||
<h3>Description</h3>
|
<h3>Description</h3>
|
||||||
|
|
Loading…
Reference in a new issue