Skip to content

Commit

Permalink
switch to pug
Browse files Browse the repository at this point in the history
  • Loading branch information
williamkapke committed Nov 17, 2017
1 parent 6c3dfbf commit 7ac1f12
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ The webpage is hosted via GitHub.

The `build.js` file:
1) aggregates the data from the `/results` folder for the versions listed in `v8.versions`
2) uses `index.jade` to generate `index.html`
2) uses `index.pug` to generate `index.html`

So, change `index.jade` then run:
So, change `index.pug` then run:
```bash
$ node build.js
```
Expand Down
4 changes: 2 additions & 2 deletions build-nightly.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var jade = require('jade')
var pug = require('pug')
var utils = require('./utils.js');
var $escape = utils.$escape
var $get = utils.$get
Expand Down Expand Up @@ -28,7 +28,7 @@ var headers = {
}
}

var html = jade.renderFile('index.jade', {
var html = pug.renderFile('index.pug', {
pretty: true,
headers: headers,
testers: testers,
Expand Down
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var jade = require('jade')
var pug = require('pug')
var utils = require('./utils.js');
var $escape = utils.$escape
var $get = utils.$get
Expand Down Expand Up @@ -40,7 +40,7 @@ function result (type, nodeVersion, esVersion, path) {
return `<div class="${result} ${type} ${flagRequired ? 'required' : ''}" title="${$escape(title)}">${result === 'Yes' && flagRequired ? 'Flag' : result}</div>`
}

var html = jade.renderFile('index.jade', {
var html = pug.renderFile('index.pug', {
pretty: true,
flaggable: true,
headers: headers,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"private": true,
"dependencies": {
"get-then": "^1.0.0",
"jade": "^1.11.0",
"object.assign": "^3.0.1"
"object.assign": "^3.0.1",
"pug": "^2.0.0-rc.4"
},
"scripts": {
"test": "npm run lint",
Expand Down

0 comments on commit 7ac1f12

Please sign in to comment.