https://github.com/doughtnerd/jade-stringifier
Converts Jade templates to HTML strings
https://github.com/doughtnerd/jade-stringifier
Last synced: 9 months ago
JSON representation
Converts Jade templates to HTML strings
- Host: GitHub
- URL: https://github.com/doughtnerd/jade-stringifier
- Owner: doughtnerd
- License: mit
- Created: 2017-07-27T17:01:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T20:35:18.000Z (almost 9 years ago)
- Last Synced: 2025-09-17T01:49:43.938Z (10 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/doughtnerd/jade-stringifier)
[](https://coveralls.io/github/doughtnerd/jade-stringifier?branch=master)
Jade Stringifier
=========
A small library that converts a Jade template into an HTML string using ES6 promises.
## Installation
`npm install @doughtnerd/jade-stringifier`
## Usage
var stringifier = require('@doughtnerd/jade-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`
## 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.