diff options
Diffstat (limited to 'frontend/templates/blocks/options.gotmpl')
-rw-r--r-- | frontend/templates/blocks/options.gotmpl | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl index d5171c3..1172e52 100644 --- a/frontend/templates/blocks/options.gotmpl +++ b/frontend/templates/blocks/options.gotmpl @@ -1,28 +1,32 @@ {{ define "results" }} - {{- range $opt, $data := .Results }} - <details id="{{ $opt }}"> + {{- range .Results }} + <details id="{{ .Option }}"> <summary> - {{ $opt }} + {{ .Option }} </summary> <p> - {{ $data.Description }} + {{ HTML .Description.HTML }} </p> <dl> - {{- with $data.Type }} + {{- with .Type }} <dt>Type</dt> <dd>{{ . }}</dd> {{- end }} - {{- with $data.Default }} + {{- with .Default }} <dt>Default</dt> <dd><code>{{ .Text }}</code></dd> {{- end }} - {{- with $data.Example }} + {{- with .Example }} {{- if .Text }} <dt>Example</dt> <dd><code>{{ .Text }}</code></dd> {{- end }} {{- end }} - {{- with $data.Declarations }} + {{- with .RelatedPackages.HTML }} + <dt>Related Packages</dt> + <dd>{{ . }}</dd> + {{- end }} + {{- with .Declarations }} <dt>Declared</dt> {{- range . }} <dd> |