pulumi/pkg/codegen/docs/templates/constructor_args.tmpl
Christian Nunciato 3b8a0dd3e3
Remove leading and trailing whitespace in resource properties (#6959)
* Remove leading and trailing whitespace in resource properties

* Make tests pass

* Add PULUMI_ACCEPT support to docs gen tests

* Handle a couple more places

Co-authored-by: Pat Gavlin <pat@pulumi.com>
2021-05-04 17:59:30 -07:00

15 lines
595 B
Cheetah

{{ define "constructor_args" }}
<dl class="resources-properties">
{{- range $params := . -}}
<dt
{{ if .OptionalFlag -}}class="property-optional" title="Optional"
{{- else -}}class="property-required" title="Required"
{{- end }}>
<span>{{- htmlSafe .Name -}}</span>
<span class="property-indicator"></span>
<span class="property-type">{{- if eq .Type.Link "#" "" -}}{{- htmlSafe .Type.Name -}}{{- else -}}{{ template "linkify_constructor_args" .Type }}{{- end -}}</span>
</dt>
<dd>{{- .Comment -}}</dd>
{{- end -}}
</dl>
{{ end }}