[ADF-3040] Replaced doc template engine to fix whitespace issues (#3356)

This commit is contained in:
Andy Stark
2018-05-21 15:54:22 +01:00
committed by Eugenio Romano
parent c63dee50f1
commit 0e64efc4e2
17 changed files with 96 additions and 94 deletions

23
tools/doc/templates/component.ejs vendored Normal file
View File

@@ -0,0 +1,23 @@
<% if (hasInputs) { %>
### Properties
| Name | Type | Default value | Description |
| -- | -- | -- | -- |
<% properties.forEach(function(prop) { -%>
<% if (prop.isInput) { -%>
| <%= prop.name %> | `<%- prop.type %>` | <%= prop.defaultValue %> | <%= prop.docText %> |
<% } -%>
<% }) -%>
<% } %>
<% if (hasOutputs) { %>
### Events
| Name | Type | Description |
| -- | -- | -- |
<% properties.forEach(function(prop) { %>
<% if (prop.isOutput) { %>
| <%= prop.name %> | `<%- prop.type %>` | <%= prop.docText %> |
<% } %>
<% }) %>
<% } %>