Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / jsbuilder / src / generators / app / templates / Application.js
diff --git a/jsbuilder/src/generators/app/templates/Application.js b/jsbuilder/src/generators/app/templates/Application.js
new file mode 100644 (file)
index 0000000..4353412
--- /dev/null
@@ -0,0 +1,12 @@
+/**
+ * This file sets application-wide settings and launches the application when everything has
+ * been loaded onto the page. By default we just render the application\s Viewport inside the
+ * launch method (see app/views/Viewport.js).
+ */ 
+{name} = new Ext.Application({
+    defaultTarget: "viewport",
+    name: "{name}",
+    launch: function() {
+        this.viewport = new {name}.Viewport();
+    }
+});
\ No newline at end of file