pulumi/pkg/codegen/docs/templates/constructor_params.tmpl

15 lines
969 B
Cheetah

{{ define "param_separator" }}<span class="p">,</span> {{ end }}
{{ define "py_param_separator" }}<span class="p">,</span>
{{ .Indent }}{{ end }}
{{ define "go_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p"> {{ .OptionalFlag }}</span>{{ template "linkify_param" .Type }}{{ end }}
{{ define "ts_formal_param" }}<span class="nx">{{ .Name }}</span><span class="p">{{ .OptionalFlag }}:</span> {{ template "linkify_param" .Type }}{{ end }}
{{ define "csharp_formal_param" }}{{ template "linkify_param" .Type }}<span class="p">{{ .OptionalFlag }} </span><span class="nx">{{ .Name }}{{ .DefaultValue }}{{ end }}
{{ define "java_formal_param" }}{{ template "linkify_param" .Type }}<span class="p"> </span><span class="nx">{{ .Name }}{{ .DefaultValue }}{{ end }}
{{ define "py_formal_param" }}<span class="nx">{{ .Name }}</span>{{ if ne .Type.Name "" }}<span class="p">:</span> {{ template "linkify_param" .Type }}{{ end }}{{ .DefaultValue }}{{ end }}