about summary refs log tree commit diff stats
path: root/frontend/templates/blocks/options.gotmpl
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/templates/blocks/options.gotmpl')
-rw-r--r--frontend/templates/blocks/options.gotmpl45
1 files changed, 34 insertions, 11 deletions
diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl
index 3451eb3..e67a5c1 100644
--- a/frontend/templates/blocks/options.gotmpl
+++ b/frontend/templates/blocks/options.gotmpl
@@ -1,13 +1,36 @@
 {{ define "results" }}
-  {{ range $opt, $data := .Results }}
-  <details>
-    <summary>
-      {{ $opt }}
-    </summary>
-    <p>
-      {{ $data.Description }}
-    </p>
-  </details>
-  {{ end }}
-</div>
+  {{- range $opt, $data := .Results }}
+    <details>
+      <summary>
+        {{ $opt }}
+      </summary>
+      <p>
+        {{ $data.Description }}
+      </p>
+      <dl>
+        {{- with $data.Type }}
+          <dt>Type</dt>
+          <dd>{{ . }}</dd>
+        {{- end }}
+        {{- with $data.Default }}
+          <dt>Default</dt>
+          <dd><code>{{ .Text }}</code></dd>
+        {{- end }}
+        {{- with $data.Example }}
+          {{- if .Text }}
+            <dt>Example</dt>
+            <dd><code>{{ .Text }}</code></dd>
+          {{- end }}
+        {{- end }}
+        {{- with $data.Declarations }}
+          <dt>Declared</dt>
+          {{- range . }}
+            <dd>
+              <a href="file://{{ . }}">{{ . }}</a>
+            </dd>
+          {{- end }}
+        {{- end }}
+      </dl>
+    </details>
+  {{- end }}
 {{ end }}