{{$interface := dict}} {{$interfaceName := .Get "interface"}} {{ range .Site.Data.doc.children -}} {{ if eq .name $interfaceName}} {{$interface = .children}} {{ end }} {{ end -}}
{{ range .Site.Data.doc.children -}} {{ if eq .name $interfaceName}} {{ range .comment.tags -}} {{ if eq .tag "name"}}

Name: {{.text}}

{{ end}} {{ end -}}

Description: {{.comment.shortText}}

{{ end }} {{ end }} {{if $interface }}

Detail:

{{range $index, $element := $interface}} {{ end }}
Name Type Description
{{$element.name}} {{$element.type.name}} {{.comment.shortText | safeHTML}} {{ range .comment.tags -}} {{ if eq .tag "description"}}

{{.text}}

{{ end}} {{ end -}}
{{ range .Site.Data.doc.children -}} {{ if eq .name $interfaceName}} {{ range .comment.tags -}} {{ if eq .tag "example"}}

Example:

{{ highlight .text "js" "" }} {{ end}} {{ if eq .tag "see"}}

See also:{{.text | safeHTML}}

{{ end}} {{ end -}} {{ end }} {{ end }} {{ end }}