@motorjs/plugin-pug

motor pug render

Stats

StarsIssuesVersionUpdatedCreatedSize
@motorjs/plugin-pug
3.3.32 years ago3 years agoMinified + gzip package size for @motorjs/plugin-pug in KB

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)

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.