{{range .Attachments}} {{if FilenameIsImage .Name}} {{else}} {{end}} {{end}}