{{ $error := false -}} {{ if partial "utilities/IsInvalidArgs.html" (dict "structure" "collapse" "args" .Params) }} {{ errorf "Invalid arguments: %s" .Position -}} {{ $error = true }} {{ end }} {{ $id := .Get "id" -}} {{ $class := .Get "class" | default "" }} {{- $body := trim .Inner " \r\n" -}} {{ if not $body -}} {{ errorf "Missing inner element text: %s" .Position -}} {{ end -}} {{ if not $error }}