Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@motorjs/plugin-pug

frogcam653.3.3

motor pug render

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)

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.3.3 (2019-05-24)

Note: Version bump only for package @motorjs/plugin-pug