createPageCommand complete with templates