{{ define "main" }} {{ $accordionID := ((printf "accordion-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} {{ $cp := ((printf "clipboard-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} {{ (partial "breadcrumb" .) }}

{{ (.Title) }}

{{ (.Content) }}
{{ with (.Resources.ByType "text") }} {{ range $k, $v := . }} {{ $modalFileID := ((printf "modal-file-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} {{ $modalReadmeID := ((printf "modal-readme-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} {{ $accordionItemID := ((printf "accordion-item-%s" (delimit (shuffle (seq 11 99)) "")) | md5) }} {{ $readmeFile := (printf "%s.md" (strings.TrimSuffix (path.Ext (.Name)) (.Name))) }} {{ $btnCSS := "collapsed" }} {{ $ariaExpanded := "false" }} {{ $itemCSS := "" }} {{ if (eq $k 0) }} {{ $btnCSS = "" }} {{ $ariaExpanded = "true" }} {{ $itemCSS = "show" }} {{ end }}
{{ with ($.Resources.GetMatch ($readmeFile)) }} {{ end }} {{ range (findRE `((::)( +)(@)(.+?)( +)(.+))` (.Content)) }} {{ end }} {{ range (findRE `(?s)((<#PSScriptInfo)(.+?)(#>))` (.Content) 1) }} {{ range (findRE `((\.)(.+?)( +)(.+))` .) }} {{ end }} {{ end }} {{ range (findRE `((#)( +)(@)(.+?)( +)(.+))` (.Content)) }} {{ end }}
{{ (i18n "resources.parameter") }} {{ (i18n "resources.value") }}
{{ (i18n "resources.resource") }} {{ (.Name) }}
{{ (i18n "resources.readme") }} {{ (.Name) }}
{{ (i18n (printf "resources.%s" ((replaceRE `((::)( +)(@)(.+?)( +)(.+))` "$5" .) | lower))) }} {{ ((replaceRE `((::)( +)(@)(.+?)( +)(.+))` "$7" .) | markdownify) }}
{{ (i18n (printf "resources.%s" ((replaceRE `((\.)(.+?)( +)(.+))` "$3" .) | lower))) }} {{ ((replaceRE `((\.)(.+?)( +)(.+))` "$5" .) | markdownify) }}
{{ (i18n (printf "resources.%s" ((replaceRE `((#)( +)(@)(.+?)( +)(.+))` "$5" .) | lower))) }} {{ ((replaceRE `((#)( +)(@)(.+?)( +)(.+))` "$7" .) | markdownify) }}
{{ (partial "module/node/modal/resource" (dict "x" . "id" ($modalFileID) )) }} {{ with ($.Resources.GetMatch ($readmeFile)) }} {{ (partial "module/node/modal/resource.readme" (dict "x" . "id" ($modalReadmeID) "body" (.Content))) }} {{ end }} {{ end }} {{ end }}
{{ end }}