Skip to content

Commit

Permalink
[minor] Use HTML instead of EJS so we don't need to depend on a templ…
Browse files Browse the repository at this point in the history
…ate engine
  • Loading branch information
3rd-Eden committed May 19, 2014
1 parent 73c8413 commit 4e9339d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions error.ejs

This file was deleted.

3 changes: 3 additions & 0 deletions error.html
@@ -0,0 +1,3 @@
<h1>Error</h1>

<p>{reason}, <em>{message}</em></p>
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -240,7 +240,7 @@ Pagelet.writable('query', []);
* @type {String}
* @public
*/
Pagelet.writable('error', path.join(__dirname, 'error.ejs'));
Pagelet.writable('error', path.join(__dirname, 'error.html'));

/**
* Optional template engine preference. Useful when we detect the wrong template
Expand Down Expand Up @@ -632,7 +632,7 @@ Pagelet.optimize = function optimize(hook) {
prototype.error = path.resolve(dir, prototype.error);
temper.prefetch(prototype.error, prototype.engine);
} else {
prototype.error = path.resolve(__dirname, 'error.ejs');
prototype.error = path.resolve(__dirname, 'error.html');
temper.prefetch(prototype.error, '');
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -26,13 +26,13 @@
"dot-component": "0.1.x",
"fusing": "0.2.x",
"json-stringify-safe": "5.0.x",
"temper": "0.1.x"
"temper": "0.2.x"
},
"devDependencies": {
"chai": "1.9.x",
"coveralls": "2.8.x",
"istanbul": "0.2.x",
"mocha": "1.18.x",
"mocha": "1.19.x",
"mocha-lcov-reporter": "0.0.x",
"pre-commit": "0.0.x"
}
Expand Down

0 comments on commit 4e9339d

Please sign in to comment.