Let's create a subgenerator for the custom generator we just created; this subgenerator is going to simply create a new page in the project and add a link to the page defined in the projects
To create a new subgenerator, open a terminal and make the generator we created before the current working directory and execute the following command:
$ yo generator:subgenerator page
The preceding command will invoke the
generator:subgenerator command, which then scaffolds a subgenerator module definition file and a template in the root of the generator project.
The directory structure created is relatively simple; it consists of a folder named after the subgenerator, ...