{{/* caf-abbreviation.html Renders the "CAF Abbreviation" table cell content for a single resource module. Inputs (dict): - rows : slice of { ns, resource, abbr } produced by partials/caf-abbreviation-map.html - ns : lower-cased "/" for the module (e.g. "microsoft.storage/storageaccounts") Output: - no CAF match -> "n/a" - exactly one -> abbr - more than one -> an unordered list of "abbr (resource name)" entries, in CAF document order. A single resource provider namespace can map to several CAF abbreviations (distinguished by kind/mode), so all options are listed and the reader chooses the one that fits their scenario. */}} {{- $rows := .rows -}} {{- $ns := .ns -}} {{- $candidates := where $rows "ns" $ns -}} {{- if eq (len $candidates) 0 -}} n/a {{- else if eq (len $candidates) 1 -}} {{ (index $candidates 0).abbr }} {{- else -}} {{- end -}}