@doughtnerd/pug-stringifier

1.0.0 • Public • Published

Build Status Coverage Status

Pug Stringifier

A small library that converts a Pug template into an HTML string using ES6 promises.

Installation

npm install @doughtnerd/pug-stringifier

Usage

var stringifier = require('@doughtnerd/pug-stringifier');

stringifier.stringify('absolute/path/to/template', {exampleContext: ['a', 'b', 'c']}).then((html) =>{
    // Do whatever with the html string that was compiled from the template.
}).catch((err) => {
    // Do whatever with the error.
});

Tests

npm test or npm run cover

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

/@doughtnerd/pug-stringifier/

    Package Sidebar

    Install

    npm i @doughtnerd/pug-stringifier

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • doughtnerd