title: How to load .html page with Python on App Engine
body: <p>In the following example, the <code>.html</code> data is in the same file as the Python code (as variable <code>MAIN_PAGE_HTML</code>).</p>
  
  <p>I want the <code>.html</code> content in its own different file.</p>
  
  <p>How do I present the HTML page? Must I always use <code>Jinja2</code> to load it?</p>
  
  <p>Or is there a simpler way to get the content of my <code>.html</code> and pass it to <code>self.response.write</code>?</p>
  
  <pre><code>import cgi from google.appengine.api import users import webapp2
  
  MAIN_PAGE_HTML = """\ &lt;html&gt;   &lt;body&gt;
      &lt;form action="/sign" method="post"&gt;
        &lt;div&gt;&lt;textarea name="content" rows="3" cols="60"&gt;&lt;/textarea&gt;&lt;/div&gt;
        &lt;div&gt;&lt;input type="submit" value="Sign Guestbook"&gt;&lt;/div&gt;
      &lt;/form&gt;   &lt;/body&gt; &lt;/html&gt; """
  
  class MainPage(webapp2.RequestHandler):
      def get(self):
          self.response.write(MAIN_PAGE_HTML)
  
  class Guestbook(webapp2.RequestHandler):
      def post(self):
          self.response.write('&lt;html&gt;&lt;body&gt;You wrote:&lt;pre&gt;')
          self.response.write(cgi.escape(self.request.get('content')))
          self.response.write('&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;')
  
  application = webapp2.WSGIApplication([
      ('/', MainPage),
      ('/sign', Guestbook), ], debug=True)
  </code></pre>
  
  <p>My <code>.html</code> file contains a form that user can fill and send to me.</p>