Generating Pages

Acetate has the capability to dynamically generate pages, you might find this useful if you need to create pages based on other pages, such as a index blog posts) or pages based on data, such as a page showing your popular GitHub projects.

acetate.generator is a configuration method that adds new pages to the site. acetate.generator takes a single argument which is a function that recives 3 arguments:


module.exports = function (acetate) {
  acetate.generate(function generateNewPages (pages, createPage, done) {

    var page = createPage('newPage.html', 'template', {
      ignore: true

    done(null, [

Edit this Page on GitHub