folderize templates