Skip to content

Commit

Permalink
now referencing submodule for helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Jul 17, 2009
1 parent c7b0438 commit a68345b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions js/bootstrap.js
@@ -1,16 +1,17 @@
system.use("com.joyent.Sammy");
system.use("smart-helpers.init");

function render(that, temp, args){
if (!args){ args = {};}

that.partial = function(part, i){
that.item = i || {};
return template(part);
}

that.catch_content = template(temp);
return template("layouts/" + (args.layout || "application.html"));
}
// function render(that, temp, args){
// if (!args){ args = {};}
//
// that.partial = function(part, i){
// that.item = i || {};
// return template(part);
// }
//
// that.catch_content = template(temp);
// return template("layouts/" + (args.layout || "application.html"));
// }

GET("/", function(){
return render(this, "index.html", {layout:"docs.html"});
Expand Down

0 comments on commit a68345b

Please sign in to comment.