Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Commit

Permalink
fixed issue when templates weren't in cwd and used directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallen23 committed Mar 11, 2012
1 parent 321a179 commit b4c868c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/clientjade
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var compile = require('../lib/compile');


program
.version('0.0.4')
.version('0.0.5')
.option('-c, --compress', 'Compress output')
.usage('<options> <jade files/folder>');

Expand Down
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ You can check out a live example [here](example/)

##History

###0.0.5
- fixed issue when templates weren't in cwd

###0.0.4
- added support for passing in folder

Expand Down
6 changes: 3 additions & 3 deletions lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ var compile = function(options, callback) {
var stats = fs.statSync(file);
if (!stats.isFile()) { //directory
var files = fs.readdirSync(file);
files.forEach(function(file, i) {
if (file.match(/\.jade$/))
queue.push(file);
files.forEach(function(f, i) {
if (f.match(/\.jade$/))
queue.push(path.join(file, f));
});
} else {
queue.push(file);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "clientjade",
"description": "a command line utility to generate compiled jade templates for the browser",
"version": "0.0.4",
"version": "0.0.5",
"preferGlobal": "true",
"homepage": "https://github.com/jgallen23/clientjade",
"author": "Greg Allen <@jgaui> (http://jga.me)",
Expand Down

0 comments on commit b4c868c

Please sign in to comment.