@param {string} [class] The class attribute of the img element.
@param {string} [id] The id attribute of the img element.
@param {string} [title] The title attribute of the img element.
+@param {string} [loading] The loading attribute of the img element, one of lazy, or eager.
@returns {template.HTML}
{{- $class := or (.Get "class") "" }}
{{- $id := or (.Get "id") "" }}
{{- $title := or (.Get "title") "" }}
+{{- $loading := or (.Get "loading") "" }}
+
{{- /* Validate arguments. */}}
{{- $errors := false}}
{{- with $class }} class="{{ $class }}" {{- end }}
{{- with $id }} id="{{ $id }}" {{- end }}
{{- with $title }} title="{{ $title }}" {{- end -}}
+ {{- with $loading }} loading="{{ $loading }}" {{- end -}}
>
{{- end }}
{{- end -}}