Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Fix html ext
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Apr 24, 2015
1 parent 0ccc774 commit 08de488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var fs = require('fs'),
return fs.statSync(path).isDirectory();
},
buildTemplates = function(filesIn, fileOut, withoutKernel) {
fileOut = fileOut || (filesIn.length === 1 ? filesIn[0].replace(/\.html?$/i, '') + '.js' : './all.jst.js');

var fd = fs.openSync(fileOut, 'w+');
fs.writeSync(fd, compiler.compileFiles(filesIn, {withoutKernel: withoutKernel}));
Expand Down

0 comments on commit 08de488

Please sign in to comment.