mxdocgen
Version:
A small tool that mimics the documentation generation capabilities offered in Mendix Studio Pro, but with greater flexibility. It uses the Mendix Model SDK to extract information from a Mendix model, which is then fed into a set of templates to generate
112 lines (106 loc) • 2.81 kB
HTML
<h3 id="{{ID}}">Domain model</h3>
<p>{{Documentation}}</p>
<div class="back-to-top"><a href="#top">Back to top</a></div>
<h4>Entities</h4>
{{#HasEntities}}
<table class='table table-striped table-bordered'>
<colgroup>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 60%"/>
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Generalization</th>
<th>Documentation</th>
</tr>
</thead>
<tbody>
{{#Entities}}
<tr>
<td><a href="#{{ID}}">{{Name}}</a></td>
<td>{{Generalization}}</td>
<td>{{Documentation}}</td>
</tr>
{{/Entities}}
</tbody>
</table>
{{/HasEntities}}
{{^HasEntities}}
The domain model has no entities.
{{/HasEntities}}
<div class="back-to-top"><a href="#top">Back to top</a></div>
{{#Entities}}
<h4 id="{{ID}}">Entity '{{Name}}'</h4>
<p>{{Documentation}}</p>
{{#Generalization}}
<h5>Generalization</h5>
<p>{{Generalization}}</p>
{{/Generalization}}
<h5>Attributes</h5>
{{#HasAttributes}}
<table class='table table-striped table-bordered'>
<colgroup>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 40%"/>
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Documentation</th>
</tr>
</thead>
<tbody>
{{#Attributes}}
<tr>
<td>{{Name}}</td>
<td>{{Type}}</td>
<td>{{DefaultValue}}</td>
<td>{{Documentation}}</td>
</tr>
{{/Attributes}}
</tbody>
</table>
{{/HasAttributes}}
{{^HasAttributes}}
Entity '{{Name}}' has no attributes.
{{/HasAttributes}}
<h5>Associations</h5>
{{#HasAssociations}}
<table class='table table-striped table-bordered'>
<colgroup>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 20%"/>
<col style="width: 40%"/>
</colgroup>
<thead>
<tr>
<th>Name</th>
<th>Connected to</th>
<th>Multiplicity</th>
<th>Documentation</th>
</tr>
</thead>
<tbody>
{{#Associations}}
<tr>
<td>{{Name}}</td>
<td>{{OtherSide}}</td>
<td>{{Multiplicity}}</td>
<td>{{Documentation}}</td>
</tr>
{{/Associations}}
</tbody>
</table>
{{/HasAssociations}}
{{^HasAssociations}}
Entity '{{Name}}' does not own any associations.
{{/HasAssociations}}
<div class="back-to-top"><a href="#top">Back to top</a></div>
{{/Entities}}