Permalink
Browse files

fixed issue when templates weren't in cwd and used directory

  • Loading branch information...
1 parent 321a179 commit b4c868cb1fe6c857393a0d90a64526d6fc14aba1 @jgallen23 committed Mar 11, 2012
Showing with 8 additions and 5 deletions.
  1. +1 −1 bin/clientjade
  2. +3 −0 docs/index.md
  3. +3 −3 lib/compile.js
  4. +1 −1 package.json
View
@@ -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>');
View
@@ -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
View
@@ -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);
View
@@ -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)",

0 comments on commit b4c868c

Please sign in to comment.