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.attributes.foo = true
}

You can access Saber Instance via this.

Last Edited on May 08, 2019 Edit This Page on GitHub
Contents