title: How to implement the website theme to my template in odoo
body: <p>I am fairly new to odoo, and for my internship i need to create a module with a website.
  For the website I am already able to display a small bit of text on an empty white page.</p>
  
  <p>here is my current working code:</p>
  
  <p>The Template:</p>
  
  <pre><code>&lt;template id="moestuin_webpage"&gt;
      &lt;div&gt;
        &lt;h1&gt;Testje&lt;/h1&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>The Controller:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from openerp import http
  
  class Moestuin(http.Controller):
  
  @http.route('/moestuin/', auth='public')
  def index(self, **kw):
      #return "Hello, world"
      return http.request.render('moestuin.moestuin_webpage')
  </code></pre>
  
  <p>As stated above, this results a white page displaying "Testje"</p>
  
  <p>But whenever I try to add the website.layout (as seen from other modules) to my Template like this:</p>
  
  <pre><code>&lt;template id="moestuin_webpage"&gt;
    &lt;t t-call="website.layout"&gt;
      &lt;div&gt;
        &lt;h1&gt;Testje&lt;/h1&gt;
      &lt;/div&gt;
    &lt;/t&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>I only get an error on my page</p>
  
  <blockquote>
    <p>Internal Server Error</p>
    
    <p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
  </blockquote>
  
  <p>I searched everywhere for solutions, but I couldn't find anything.</p>
  
  <p>Any ideas on how to get this to work, am I forgetting anything?</p>