forked from chenjianjx/wsdl2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.ftl
32 lines (28 loc) · 874 Bytes
/
macros.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<#macro stubChildrenAsTable stub>
<#if (stub.childStubs?? && (stub.childStubs?size > 0)) >
<table class="table table-condensed table-bordered model-rows-table">
<tr>
<th>Property</th>
<th>Type</th>
<th>Description</th>
</tr>
<#list stub.childStubs as childStub>
<@stubRow stub=childStub parentPath=""/>
</#list>
</table>
</#if>
</#macro>
<#macro stubRow stub parentPath>
<tr>
<td>
${stubOgnl(stub, parentPath)}
</td>
<td>
${stubType(stub)}
</td>
<td>${stub.description!}</td>
</tr>
<#list stub.childStubs as childStub>
<@stubRow stub=childStub parentPath=stubOgnl(stub, parentPath)/>
</#list>
</#macro>