{{ $filename := .Get "filename" -}} {{ $ext := substr $filename (sub (len $filename) 4) }}
{{ if eq $ext ".mp4" }} {{ else }} {{end}}