Add task for splitting the templates