Comparing version 0.5.6 to 0.6.0
@@ -195,8 +195,8 @@ | ||
* { | ||
* "data": {...}, | ||
* "_data": {...}, | ||
* "articles": { | ||
* "data": {...} | ||
* "_data": {...} | ||
* }, | ||
* "people": { | ||
* "data": {...} | ||
* "_data": {...} | ||
* } | ||
@@ -221,3 +221,3 @@ * } | ||
var obj = {} | ||
obj.contents = [] | ||
obj._contents = [] | ||
@@ -227,3 +227,3 @@ try{ | ||
var fileData = fs.readFileSync(dataPath) | ||
obj.data = JSON.parse(fileData) | ||
obj._data = JSON.parse(fileData) | ||
}catch(e){ | ||
@@ -255,8 +255,8 @@ if(e.code && e.code === "ENOENT"){ | ||
}else{ | ||
if(["_", "."].indexOf(file[0]) === -1 ) obj.contents.push(outputPath(file)) | ||
if(["_", "."].indexOf(file[0]) === -1 ) obj._contents.push(outputPath(file)) | ||
} | ||
}) | ||
if(obj.contents.length == 0) | ||
delete obj.contents | ||
if(obj._contents.length == 0) | ||
delete obj._contents | ||
@@ -322,3 +322,3 @@ return obj | ||
* "articles": { | ||
* "data": { | ||
* "_data": { | ||
* "hello-world": "You Found Me!" | ||
@@ -339,5 +339,5 @@ * } | ||
return walkData(tail, obj[head]) | ||
}else if(obj.hasOwnProperty("data")){ | ||
return obj["data"][head] | ||
? obj["data"][head] | ||
}else if(obj.hasOwnProperty("_data")){ | ||
return obj["_data"][head] | ||
? obj["_data"][head] | ||
: null | ||
@@ -344,0 +344,0 @@ |
{ | ||
"name": "terraform", | ||
"version": "0.5.6", | ||
"version": "0.6.0", | ||
"description": "pre-processor engine that powers the harp web server", | ||
@@ -14,3 +14,4 @@ "repository" : { "type" : "git", "url" : "https://github.com/sintaxi/terraform.git" }, | ||
{ "name": "Brian Donovan", "email": "donovan@squareup.com" }, | ||
{ "name": "Kenneth Ormandy", "email": "kenneth@chloi.io" } | ||
{ "name": "Kenneth Ormandy", "email": "kenneth@chloi.io" }, | ||
{ "name": "Zhang Yichao", "email": "echaozh@gmail.com" } | ||
], | ||
@@ -24,4 +25,4 @@ "license": "MIT", | ||
"marked": "0.2.9", | ||
"less" : "1.4.2", | ||
"stylus": "0.38.0" | ||
"less" : "1.5.0", | ||
"stylus": "0.40.0" | ||
}, | ||
@@ -28,0 +29,0 @@ "devDependencies": { |
29009
+ Addedclean-css@1.0.12(transitive)
+ Addedcommander@1.3.2(transitive)
+ Addedkeypress@0.1.0(transitive)
+ Addedless@1.5.0(transitive)
+ Addedstylus@0.40.0(transitive)
- Removedless@1.4.2(transitive)
- Removedstylus@0.38.0(transitive)
- Removedycssmin@1.0.1(transitive)
Updatedless@1.5.0
Updatedstylus@0.40.0