{{$interface := dict}} {{$interfaceName := .Get "interface"}} {{ range .Site.Data.doc.children -}} {{ if eq .name $interfaceName}} {{$interface = .children}} {{ end }} {{ end -}}
Name: {{.text}}
{{ end}} {{ end -}}Description: {{.comment.shortText}}
{{ end }} {{ end }} {{if $interface }}Detail:
Name | Type | Description |
---|---|---|
{{$element.name}} | {{$element.type.name}} |
{{.comment.shortText | safeHTML}}
{{ range .comment.tags -}}
{{ if eq .tag "description"}}
{{.text}} {{ end}} {{ end -}} |
Example:
{{ highlight .text "js" "" }} {{ end}} {{ if eq .tag "see"}}See also:{{.text | safeHTML}}
{{ end}} {{ end -}} {{ end }} {{ end }} {{ end }}