Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix compilation error.

  • Loading branch information...
commit 42ac61e5530d8fabe730ca82df276aaf567e2f6e 1 parent ce1b45b
@Deathspike authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/index.js
  2. +1 −1  package.json
View
6 lib/index.js
@@ -39,7 +39,7 @@ module.exports = function (file, options, cb) {
// Delete the in-browser state.
delete options._inBrowser;
// Delete the locals.
- delete options._locals;
+ delete options._locals;
// Delete the settings.
delete options.settings;
// Check if express rendering is scoped to locals and options as partial.
@@ -194,6 +194,8 @@ module.exports.compileFile = function (file, directory, cache, compress) {
directory = directory === undefined ? module.exports.options.directory : (Array.isArray(directory) ? directory : [directory]);
// Validate and set the file name.
file = path.extname(file).length ? file : file + '.' + module.exports.options.extension;
+ // Unshift the root directory.
+ directory.unshift('');
// Iterate through each directory.
for (var i = 0; i < directory.length; i += 1) {
// Initialize the name.
@@ -332,4 +334,4 @@ module.exports.renderFile = function (root, inputPartials, file, directory, cach
}
// Invoke the compiled template.
return compiled(root);
-};
+};
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "gaikan",
- "version": "1.3.12",
+ "version": "1.3.13",
"description": "HTML template engine for Node and Express.",
"main": "index.js",
"scripts": {
Please sign in to comment.
Something went wrong with that request. Please try again.