title: Has anyone successfully integrated Ember.js - Phonegap (and jQuery Mobile)?
body: <p>I'm struggling to integrate Cordova(=Phonegap) with Ember.js, and jQuery Mobile. Ember.js + jQuery Mobile works fine, as loading index.html in any desktop browser successfully loads the app.</p>
  
  <p>Using xCode 4 and the iPhone 5.1 simulator, it doesn't show any content within handlebar tags. Which means Ember.js fails to load.</p>
  
  <p><strong>index.html:</strong></p>
  
  <pre><code>&lt;html lang="en"&gt; 
  &lt;head&gt;
  
    &lt;title&gt;&lt;/title&gt;
  
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /&gt;
    &lt;meta charset="utf-8"&gt;
  
    &lt;link rel="apple-touch-icon" href="/apple-touch-icon.png"&gt;
  
    &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" /&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script type="text/x-handlebars" data-template-name="main"&gt;
      this text is NOT displayed
  
    &lt;/script&gt;
  
    &lt;div&gt; this text IS displayed &lt;/div&gt;
  
  
    &lt;script src="js/vendor/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="js/vendor/jquery.mobile.js"&gt;&lt;/script&gt;
    &lt;script src="js/vendor/ember.js"&gt;&lt;/script&gt;
    &lt;script src="js/app/app.js"&gt;&lt;/script&gt;
    &lt;script src="js/vendor/cordova-1.5.0.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
  
        // If you want to prevent dragging, uncomment this section
        function preventBehavior(e){ 
            e.preventDefault(); 
        };
        document.addEventListener("touchmove", preventBehavior, false);
  
  
        document.addEventListener("deviceready", onDeviceReady, false);
  
        /* When this function is called, Cordova has been initialized and is ready to roll */
        /* If you are supporting your own protocol, the var invokeString will contain any arguments to the app launch.
        see http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
        for more details -jm */
        function onDeviceReady(){
            // do your thing!
        }
  
    &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>