miter-pug-service
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Build Status

Miter Pug Service

A Miter service exposing Pug templating functionality.

Installation

Install miter-pug-service using NPM.

npm install --save miter-pug-service

Example

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
    }
});

Contributing

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.

Changelog

See what's new in recent versions of Miter Pug Service.

Attribution

Special thanks to BrowserStack for generously hosting our cross-browser integration tests!

BrowserStack

Package Sidebar

Install

npm i miter-pug-service

Weekly Downloads

0

Version

0.5.0

License

MIT

Last publish

Collaborators

  • leviathanbadger