Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Update HTML compiler to use Pug #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"coffee-script": "^1.10.0",
"cson": "^3.0.2",
"debug": "^2.2.0",
"jade": "^1.11.0",
"pug": "^2.0.0-alpha6",
"less": "^2.5.3",
"lodash": "^3.10.1",
"@paulcbetts/mime-types": "^2.1.9",
Expand Down
4 changes: 2 additions & 2 deletions src/html/jade.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class JadeCompiler extends SimpleCompilerBase {
}

compileSync(sourceCode, filePath) {
jade = jade || require('jade');
jade = pug || require('pug');

let code = jade.render(
sourceCode,
Expand All @@ -28,6 +28,6 @@ export default class JadeCompiler extends SimpleCompilerBase {
}

getCompilerVersion() {
return require('jade/package.json').version;
return require('pug/package.json').version;
}
}
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const filenames = [
'json/cson',
'html/inline-html',
'html/jade',
'html/pug',
'passthrough'
];

Expand Down