Skip to content

Commit 0d36570

Browse files
committed
Add output of properties
1 parent 064417d commit 0d36570

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 1.4.0
22

33
* Output for the `@throws` tag.
4+
* Output in HTML for the `@properties` tag.
45

56
## 1.3.0
67

share/html/section.hbs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,30 @@
4545
</p>
4646
{{/if}}
4747

48+
{{#if properties}}
49+
<p>
50+
<table class='table-light overflow-hidden bg-cloudy-light'>
51+
<thead>
52+
<th class='col-3'>property</th>
53+
<th class='col-3'>type</th>
54+
<th class='col-6'>description</th>
55+
</thead>
56+
{{#properties}}
57+
<tr>
58+
<td>{{name}}</td>
59+
<td>
60+
{{{format_type type}}}
61+
{{#default}}
62+
(default <code>{{.}}</code>)
63+
{{/default}}
64+
</td>
65+
<td>{{{md description}}}</td>
66+
</tr>
67+
{{/properties}}
68+
</table>
69+
</p>
70+
{{/if}}
71+
4872
{{#if returns}}
4973
{{#returns}}
5074
<h4>Returns</h4>

0 commit comments

Comments
 (0)