24 lines
399 B
Cheetah
24 lines
399 B
Cheetah
{{ define "examples" -}}
|
|
{{ print "{{% examples %}}" }}
|
|
|
|
## Example Usage
|
|
|
|
{{ htmlSafe "{{< chooser language \"typescript,python,go,csharp\" / >}}" }}
|
|
|
|
{{ range . }}
|
|
{{ .Title }}
|
|
|
|
{{ range $key, $val := .Snippets }}
|
|
{{ htmlSafe "{{< example " }}{{ $key }}{{ htmlSafe " >}}" }}
|
|
|
|
{{ htmlSafe $val }}
|
|
|
|
{{ htmlSafe "{{< /example >}}" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ print "{{% /examples %}}" }}
|
|
|
|
{{ end }}
|