Sha256: 86285eef18d8513e350f07caf168810cbdcdb2e5fe019a884aef68d2291ca832

Contents?: true

Size: 1.23 KB

Versions: 51

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: <%= namespace %>.contactsController.set('content',<%= namespace %>.contacts);

} ;

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

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
sproutcore-1.6.0.beta.3-x86-mingw32 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.6.0.beta.3-java lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.6.0.beta.3 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.6.0.beta.2-java lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.6.0.beta.2 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.6.0.beta.1 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0-java lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0.rc.2 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0.rc.1 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0.pre.5 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0.pre.4.1 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0.pre.4 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.5.0.pre.3 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.4.5 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.4.5-java lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.4.4-java lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.4.4 lib/gen/app/templates/apps/@target_name@/main.js
sproutcore-1.4.3.1 lib/gen/app/templates/apps/@target_name@/main.js