Filetype detection for Emblem templates