@motorjs/plugin-pug
v3.3.3
Published
motor pug render
Downloads
10
Readme
Motor plugin-pug
pug template based renderer for motor
Installation
using yarn
yarn add @motorjs/plugin-pug
using npm
npm i -S @motorjs/plugin-pug
Usage
const motor = require('@motorjs/engine')
const Pug = require('@motorjs/plugin-pug')
const motorConfig = {
templatesDir : path.resolve('templates'),
outputDir : path.resolve('output'),
viewsDir : path.resolve('views'),
plugins: [
new Pug()
// other plugins
]
}
motor(motorConfig)