Skip to content

Commit

Permalink
Replaced prop.__path by prop._id
Browse files Browse the repository at this point in the history
Bumped to version v0.5.1
  • Loading branch information
pvorb committed Aug 25, 2011
1 parent 66005ba commit e587cbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bake.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ var bake = function(conf, hooks) {
prop.__content);

// Result's filename
if (prop.__path == undefined)
prop.__path = master.replace(fileExtPattern,
if (prop._id == undefined)
prop._id = master.replace(fileExtPattern,
"." + fileExt[masterExt]);

// Render ejs-template
result = ejs.render(result, { locals: prop });

// Write contents
fs.writeFile(prop.__path, result, function(err) {
fs.writeFile(prop._id, result, function(err) {
// Throw errors
if (err) throw err;

Expand All @@ -110,7 +110,7 @@ var bake = function(conf, hooks) {
hooks.__writeAfter(master, prop);

// Log status on success
console.log(" " + prop.__path + " written.\n");
console.log(" " + prop._id + " written.\n");

// When file counter is zero
if (!--todo) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bake",
"description": "bakery for static files (like jekyll) that supports embedded JS templates",
"tags": [ "ejs", "template" ],
"version": "0.5.0",
"version": "0.5.1",
"author": "Paul Vorbach <paul@vorb.de> (http://vorb.de)",
"repository": {
"type": "git",
Expand Down

0 comments on commit e587cbe

Please sign in to comment.