title: Render a table from a variable (EJS)
body: <p>Im trying to render a table, my variable was extracted from mongodb. This is my attempt in index.ejs</p>
  
  <p>what have I done wrong here?</p>
  
  <pre><code>    &lt;table&gt;   
          &lt;tr&gt;
              &lt;th&gt;HomeTeam&lt;/th&gt;
          &lt;/tr&gt;
          &lt;% for (var i = 0; i &lt; result.length; i++) { %&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;%= result[i].hteam %&gt; &lt;/td&gt;
              &lt;/tr&gt;
  
          &lt;% }); %&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>In the console I get syntax error. </p>
  
  <p>Any help to compile this would be much helpful as it has taken me several weeks to reach this point in my project :)</p>
  
  <p>frederik </p>