Permalink
Browse files

FIXED - RequireJS is now added in the footer + bumped version

  • Loading branch information...
1 parent 07f5b08 commit a67b0f144c57129363811b5c32e1e53249515b39 @glesperance committed Apr 24, 2012
Showing with 6 additions and 3 deletions.
  1. +5 −2 lib/controller.js
  2. +1 −1 package.json
View
@@ -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" + "')");
@@ -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');
};
View
@@ -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"

0 comments on commit a67b0f1

Please sign in to comment.