Permalink
Browse files

Write static files after dynamic files. This way a placeholder can re…

…place the real index.
  • Loading branch information...
1 parent e09235d commit b0076e8960a354256daf681c7a4153c15a2c539e @creationix committed Feb 2, 2010
Showing with 6 additions and 5 deletions.
  1. +6 −5 build.js
View
@@ -135,11 +135,6 @@ function render(data) {
};
haml = Helpers.partial;
- // Write the static files as is...
- loop(data.static, function (filename, content) {
- File.write(PUBLIC_DIR + "/" + filename, content);
- });
-
// Generate a page for each author...
loop(data.authors, function (name, props) {
props.link = name.toLowerCase().replace(/ /g, "_") + ".html";
@@ -164,6 +159,12 @@ function render(data) {
title: "Index",
content: haml("index", data)
}));
+
+ // Write the static files as is...
+ loop(data.static, function (filename, content) {
+ File.write(PUBLIC_DIR + "/" + filename, content);
+ });
+
}
exports.build = function () {

0 comments on commit b0076e8

Please sign in to comment.