mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
migrate from Jade to Pug
This commit is contained in:
parent
5426f6d0c5
commit
b890ab482b
@ -1,4 +1,4 @@
|
||||
const jade = require('jade');
|
||||
const pug = require('pug');
|
||||
const { markdown } = require('markdown');
|
||||
const fs = require('fs');
|
||||
const vm = require('vm');
|
||||
@ -132,6 +132,6 @@ for (let index = 0; index < pages.length; index++) {
|
||||
const page = pages[index];
|
||||
page.pages = pages;
|
||||
page.index = index;
|
||||
const html = jade.renderFile('template.jade', page);
|
||||
const html = pug.renderFile('template.pug', page);
|
||||
fs.writeFileSync(page.file + '.html', html, 'utf8');
|
||||
}
|
||||
|
||||
@ -33,10 +33,10 @@
|
||||
"codemirror": "~3.20.0",
|
||||
"eslint": "^5.3.0",
|
||||
"iconv-lite": "^0.4.13",
|
||||
"jade": "~1.1.5",
|
||||
"jest": "^24.7.1",
|
||||
"markdown": "~0.5.0",
|
||||
"prettier": "1.15.3",
|
||||
"pug": "^2.0.3",
|
||||
"rollup": "^1.11.0",
|
||||
"rollup-plugin-babel": "^4.0.1",
|
||||
"rollup-plugin-cpy": "^1.0.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user