@motorjs/plugin-html

3.3.3 • Public • Published

Motor plugin-html

Installation

using yarn

yarn add @motorjs/plugin-html

using npm

npm i -S @motorjs/plugin-html

Usage

const motor = require('@motorjs/engine')
const Html = require('@motorjs/plugin-html')

const motorConfig = {
  templatesDir : path.resolve('templates'),
  outputDir : path.resolve('output'),
  viewsDir : path.resolve('views'),

  plugins: [
    new Html()
    // other plugins
  ]
}

motor(motorConfig)

by default Html will save the html file to path.join(outputDir, `${lang}-${country}/${filename}/index.html`)

/@motorjs/plugin-html/

    Package Sidebar

    Install

    npm i @motorjs/plugin-html

    Weekly Downloads

    1

    Version

    3.3.3

    License

    none

    Unpacked Size

    1.72 kB

    Total Files

    4

    Last publish

    Collaborators

    • mouafa
    • pierpaoloferraro
    • smartmohamed