Contents
Node APIs

Usage

Implement any of Saber Hooks by exporting them from a file named saber-node.js in the root of your project.

During developing, you need to restart the server if you made any changes in this file.

For example:

exports.onCreatePage = function (page) {
  page.foo = true
}

You can access Saber Instance via this.