Back to topic list


Generators allows to create multiple pages based on one template. This feature also allows content managers to create new pages.

Creating a generator

  • Create your handlebars template in /pages/generators/:generatorname.hbs
  • Create content file /cms/generators/:generatorname/:pagename.
  • Your page will be accessible at /:generatorname/:pagename

Admin UI

Admin is, as always, auto-pregenerated. No additional work needed. You can just create new pages easily.local

Generator template

When user adds new page throught the Admin UI, the created page will be duplicated from the first content file in the generator. If you wish, you can create a /cms/generators/:generatorname/:generatorname.js and defined the content’s template in this file.

Back to topic list

Shout out to pexels and freepik