Add each/endeach command to Template