https://github.com/holyshared/template2pdf-jade
template2pdf for jade
https://github.com/holyshared/template2pdf-jade
Last synced: 2 months ago
JSON representation
template2pdf for jade
- Host: GitHub
- URL: https://github.com/holyshared/template2pdf-jade
- Owner: holyshared
- License: mit
- Created: 2015-09-20T11:30:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T07:47:48.000Z (over 10 years ago)
- Last Synced: 2025-10-07T01:58:19.674Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 157 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
template2pdf-jade
========================
[](https://travis-ci.org/holyshared/template2pdf-jade)
[](https://coveralls.io/github/holyshared/template2pdf-jade?branch=master)
[](https://www.versioneye.com/user/projects/55feb01b601dd9001500003d)
[](https://waffle.io/holyshared/template2pdf-jade)
Installation
------------------------
npm install template2pdf
npm install template2pdf-jade
Basic usage
------------------------
```js
import jade from 'template2pdf-jade';
import exporter from 'template2pdf';
let values = {
name: 'jade'
};
exporter(jade({ /* jade options */ })).render('views/content.jade', values).then((result) => {
result.toFile('/tmp/content.pdf', () => {
//do something
});
});
```