Skip to content
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
4 changes: 2 additions & 2 deletions lib/template-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ exports.TemplateBase = Object.create(Object.prototype, {
if (typeof this.didSetOptions === "function") {
this.didSetOptions(options);
}
var mainBuildDir = Path.join(os.tmpDir(), "build");
var mainBuildDir = Path.join(os.tmpdir(), "build");
this.buildDir = Path.join(mainBuildDir, this.options.templateName);
var self = this;
return qfs.exists(mainBuildDir).then(function(exists) {
Expand Down Expand Up @@ -243,7 +243,7 @@ exports.TemplateBase = Object.create(Object.prototype, {
var newName = filename,
options = this.options;
for (var name in options) {
if (options.hasOwnProperty(name)) {
if (options.hasOwnProperty(name) && typeof options[name] === "string") {
newName = newName.replace(
FILENAME_VARIABLE_START + name + FILENAME_VARIABLE_END,
options[name]
Expand Down
Loading