github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/docs/templates/examples.tmpl (about)

     1  {{ define "examples" -}}
     2  {{ htmlSafe "<div><pulumi-examples>" }}
     3  
     4  ## Example Usage
     5  
     6  {{ htmlSafe "<div><pulumi-chooser type=\"language\" options=\"typescript,python,go,csharp,java,yaml\"></pulumi-chooser></div>" }}
     7  
     8  {{ range . }}
     9  {{ .Title }}
    10  
    11  {{ range $key, $val := .Snippets }}
    12  {{ htmlSafe "<div>" }}
    13  {{ htmlSafe "<pulumi-choosable type=\"language\" values=\"" }}{{ $key }}{{ htmlSafe "\">" }}
    14  
    15  {{ htmlSafe $val }}
    16  
    17  {{ htmlSafe "</pulumi-choosable>" }}
    18  {{ htmlSafe "</div>" }}
    19  
    20  {{ end }}
    21  
    22  {{ end }}
    23  
    24  {{ htmlSafe "</pulumi-examples></div>" }}
    25  
    26  {{ end }}