Create a gist now

Instantly share code, notes, and snippets.

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