dream2nix/docs/theme/reference_options.html

38 lines
941 B
HTML
Raw Normal View History

## Options
{%- for name, children in options.items() recursive %}
##{{loop.depth * "#"}} {{ name }}
{% if "type" in children -%}
{{ children.description }}
<table>
<tr>
<td>type</td>
<td><code>{{ children.type }}</code> {{ "(read only)" if children.readOnly else "" }}</td>
</tr>
<tr>
<td>source</td>
<td>{%- for d in children.declarations -%}<a href="{{d.url}}">{{d.name}}</a>{{ ", " if not loop.last else "" }}{%- endfor -%}</td>
</tr>
{%- if children.default -%}
<tr>
<td>default</td>
<td><pre>{{(children.default | default({})).text}}</pre></td>
</tr>
{%- endif -%}
2024-06-14 16:31:43 +03:00
{%- if children.example -%}
<tr>
<td>example</td>
<td>
<pre>{{(children.example | default({})).text | replace("\n", "\\n")}}</pre>
</td>
</tr>
{%- endif -%}
</table>
{%- else -%}
{{ loop(children.items()) }}
{%- endif %}
{%- endfor %}