@motorjs/plugin-html
v3.3.3
Published
motor plugin html
Downloads
6
Readme
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`)