title: Printing Spreadsheet details to HTML
body: <p>I have created a project on Google Apps Script and have the tutorial script on it however it is not working. Basically I want the HTML to print the data from the data-range on the Google Spreadsheet.</p>
  
  <p>The code for my .gs file is:</p>
  
  <pre><code>function doGet() {
    return HtmlService.createHtmlOutputFromFile('Main Page');
  }
  
  function getData() {
    return SpreadsheetApp.openById('0AtD2IyQN1tyGdHBiLWExb3NoSHZ2RlAzNTBrS1dQLXc').getRangeByName('dataRange').getValues();
  }
  </code></pre>
  
  <p>and the code for my html is:</p>
  
  <pre><code>&lt;html&gt;
   &lt;? var data = getData(); ?&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am fairly new to the Google Apps Script applications and have looked at this code a number of times. The app I have created seems to not be working at all. Can anyone provide a solution for me or explain why this is not working?</p>