public
Created

  • Download Gist
public/javascript/app/app.js
JavaScript
1
steal.plugins("app/home");
public/javascript/app/home/controllers/list_controller.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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"}));
}
});
});
public/javascript/app/home/home.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12
steal.plugins("jquery/controller").controllers("list").then(function($) {
$.Controller.extend("App.Home",{onDocument: true},
{
ready : function() {
$( "#list" ).app_home_list();
}
});
});
public/javascript/app/home/views/list/list.ejs
1
<li><%= string %></li>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.