3.3.3 • Published 5 years ago
@motorjs/plugin-pug v3.3.3
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)