Sha256: 4d293dcbef0f1756f3cdd1064e8cfc361c94f6cf88f10301bc971407bb7eea26

Contents?: true

Size: 1.23 KB

Versions: 10

Compression:

Stored size: 1.23 KB

Contents

// ==========================================================================
// Project:   <%= namespace %>
// Copyright: ©<%= Time.now.year %> My Company, Inc.
// ==========================================================================
/*globals <%= namespace %> */

// This is the function that will start your app running.  The default
// implementation will load any fixtures you have created then instantiate
// your controllers and awake the elements on your page.
//
// As you develop your application you will probably want to override this.
// See comments for some pointers on what to do next.
//
<%= namespace %>.main = function main() {

  // Step 1: Instantiate Your Views
  // The default code here will make the mainPane for your application visible
  // on screen.  If you app gets any level of complexity, you will probably 
  // create multiple pages and panes.  
  <%= namespace %>.getPath('mainPage.mainPane').append() ;

  // Step 2. Set the content property on your primary controller.
  // This will make your app come alive!

  // TODO: Set the content property on your primary controller
  // ex: <%= class_name %>.contactsController.set('content',<%= class_name %>.contacts);

} ;

function main() { <%= namespace %>.main(); }

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090407205609 gen/app/templates/apps/{target_name}/main.js
sproutit-sproutcore-1.0.0.20090408130025 gen/app/templates/apps/{target_name}/main.js
sproutit-sproutcore-1.0.0.20090416161445 gen/app/templates/apps/{target_name}/main.js
sproutit-sproutcore-1.0.0.20090720093355 gen/app/templates/apps/{target_name}/main.js
sproutit-sproutcore-1.0.0.20090720202429 gen/app/templates/apps/{target_name}/main.js
sproutit-sproutcore-1.0.0.20090721125122 gen/app/templates/apps/{target_name}/main.js
sproutit-sproutcore-1.0.20090721145280 gen/app/templates/apps/@target_name@/main.js
sproutit-sproutcore-1.0.20090721145281 gen/app/templates/apps/@target_name@/main.js
sproutit-sproutcore-1.0.20090721145282 gen/app/templates/apps/@target_name@/main.js
sproutit-sproutcore-1.0.20090721145285 gen/app/templates/apps/@target_name@/main.js