Renamed 'layout' directory functions to 'template'