Skip to content

Commit

Permalink
FIXED - RequireJS is now added in the footer + bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Lesperance committed Apr 24, 2012
1 parent 07f5b08 commit a67b0f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/controller.js
Expand Up @@ -34,7 +34,6 @@ var rocket_tmpl = {};

header.push("<script>");
header.push("var _b = " + JSON.stringify(args) + "; ");
header.push("document.write('<script src=\"/js/rocket/vendors/require-1.0.6.min.js\"><\\/script>')");
header.push("var require = " + JSON.stringify(require_configuration) + ";");
header.push("require.deps || (require.deps = []);");
header.push("require.deps.push('" + controller_name + "_client" + "')");
Expand All @@ -52,7 +51,11 @@ var rocket_tmpl = {};

, footer = []
;


footer.push("<script>");
footer.push("document.write('<script src=\"/js/rocket/vendors/require-1.0.6.min.js\"><\\/script>')");
footer.push("</script>");

return footer.join('\n');

};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "rocket"
, "description": "The rapid development framework for node.js"
, "keywords": ["mvc", "model view controller", "comet","rapid development", "Rocket", "framework"]
, "version": "0.3.0"
, "version": "0.3.1"
, "homepage": "http://wavo.me"
, "repository":
{ "type" : "git"
Expand Down

0 comments on commit a67b0f1

Please sign in to comment.