chore(dgeni): make returns object macro a table instead of a list

This commit is contained in:
perry
2016-04-13 13:19:51 -05:00
parent a089a97ab1
commit c4eed03630

View File

@ -24,10 +24,31 @@ angular_controller: APIDemoCtrl <@ endif @>
<@- endmacro -@>
<@ macro returnObject(params) -@>
<@- if params -@><br>
<@- for param in params -@>
<code><$ param.type $></code> <span class="fixed-width"><$ param.key $></span> <$ param.description $><br>
<@- endfor @>
<@- if params -@>
<table class="table returns-object-table param-table">
<thead>
<tr>
<th>Property</th>
<th>Type</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<@ for param in params @>
<tr>
<td class="fixed-width">
<$ param.key $>
</td>
<td>
<$ param.type | code $>
</td>
<td>
<$ param.description | marked $>
</td>
</tr>
<@ endfor @>
</tbody>
</table>
<@- endif @>
<@- endmacro -@>