@motorjs/plugin-server
v3.3.3
Published
motor plugin server
Downloads
14
Readme
Motor plugin-server
On demand rendering server based on hapi.js
Installation
using yarn
yarn add @motorjs/plugin-server
using npm
npm i -S @motorjs/plugin-server
Usage
const motor = require('@motorjs/engine')
const Server = require('@motorjs/plugin-server')
const motorConfig = {
templatesDir : path.resolve('templates'),
outputDir : path.resolve('output'),
viewsDir : path.resolve('views'),
plugins: [
new Server({
webhook: '/webhook', // in case you want the webhook to update the structure
})
]
}
motor(motorConfig)