A Miter service exposing Pug templating functionality.
Install miter-pug-service
using NPM.
npm install --save miter-pug-service
To use miter-pug-service
as the template engine in miter, you need to specify it as the engine
when you launch the miter service.
import { Miter } from 'miter';
import { PugService } from 'miter-pug-service';
Miter.launch({
name: 'my-server',
//...
views: {
fileRoot: './views',
engine: PugService
}
});
Miter is a relatively young framework, and there are bound to be many ways that it can be improved. If you notice a bug, or would like to request a feature, feel free to create an issue. Better yet, you can fork the project and submit a pull request with the added feature.
See what's new in recent versions of Miter Pug Service.
Special thanks to BrowserStack for generously hosting our cross-browser integration tests!