remove templates/ from filenames