@motorjs/engine
v3.3.3
Published
motor engine
Downloads
5
Readme
Motor Engine
NOTE: if you are using @motorjs/cli you don't need to install this
Installation
using yarn
yarn add @motorjs/engine
using npm
npm i -S @motorjs/engine
Usage
const motor = require('@motorjs/engine')
const motorConfig = {
templatesDir : path.resolve('templates'),
outputDir : path.resolve('output'),
viewsDir : path.resolve('views'),
plugins: [
new Pug()
new Html()
]
}
motor(motorConfig)