mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 01:32:41 +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>
|
||||
</tbody>
|
||||
</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 { ?>
|
||||
<h3>Description</h3>
|
||||
|
|
Loading…
Reference in a new issue