In hexo a generator can be used to build files for a static website. It can work with content from the sites blog posts, it can be used in conjunction with .ejs files to make .html files, or it can be used to make other plain text files as well.
When I generate the site this will create a test.md mark down file in the root name space of the public folder. If I just want to create plain text files, and the like this is all there is to it.
Although I can make plain text files at a give path, chances are what I will really want to use a hexo generator for is to make one or more .html files with an .ejs template file that I have in my theme.
In oder to do this I will want to have the template file that I want to use in the layout folder of my theme in place.