blob: 7d5608a85d82e22e59fdc250ff115ce68719d55c [file] [log] [blame]
{{#if const_declarations}}
## **CONSTANTS**
<table>
<tr><th>Name</th><th>Value</th><th>Type</th><th>Description</th></tr>
{{~ #each const_declarations ~}}
<tr id="{{rpn name}}">
<td><a href="{{sl @root.config @root.tag location}}">{{rpn name}}</a></td>
{{#if (eq type.kind "primitive") ~}}
<td>
<code>
{{~ #if (eq value.kind "literal") ~}}
{{~ value.literal.value ~}}
{{~ else ~}}
{{~ #if (eq value.kind "identifier") ~}}
{{~ pl value.identifier @root.name ~}}
{{~ /if ~}}
{{~ /if ~}}
</code>
</td>
<td><code>{{~ type.subtype ~}}</code></td>
{{~ else ~}}
{{~ #if (eq type.kind "string") ~}}
<td><code>{{~ value.literal.value ~}}</code></td>
<td><code>String</code></td>
{{~ /if ~}}
{{~ /if}}
<td>{{~> doc ~}}</td>
</tr>
{{/each}}
</table>
{{/if ~}}