Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created January 27, 2011 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmaicher/798758 to your computer and use it in GitHub Desktop.
Save jmaicher/798758 to your computer and use it in GitHub Desktop.
steal.plugins("app/home");
steal.plugins("jquery/controller").controllers("list").then(function($) {
$.Controller.extend("App.Home",{onDocument: true},
{
ready : function() {
$( "#list" ).app_home_list();
}
});
});
<li><%= string %></li>
steal.plugins("jquery/controller", "jquery/view/ejs", 'jquery/controller/view').then(function($) {
$.Controller.extend("App.Home.Controllers.List",
/* @static */
{
},
/* @prototype */
{
init : function() {
this.element.html(this.view("list", {string: "Hello World"}));
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment