title: nodejs + ejs for if express returns a unexpected catch
body: <p>im sure this is silly, but i cant get it to work for the life of me, i just want to do a simple for statement with an if inside on ejs, but it keeps returning a unexpected catch event in express.</p>
  
  <p>to set up the scene, i've got a JSON thats setting up a a registration form in nodejs using ejs as my template renderer, lets say I have  the following code:</p>
  
  <pre><code>var userData:{
          "username":"User name",
          "email":"johndoe@gmail.com",
          "password":"Please enter Password",
          "birthdate":"date"
          }
  </code></pre>
  
  <p>and i have a ejs file that goes</p>
  
  <pre><code>&lt;h1 id="page-title"&gt;&lt;%= title %&gt;&lt;/h1&gt;
  &lt;div id="list"&gt;
  &lt;form action="user/create/" method="post" accept-charset="utf-8"&gt;
      &lt;div class="item-new"&gt;
      &lt;% for (var key in userData){ %&gt;
          &lt;% if(key != 'birthdate'){ %&gt;
          &lt;input class="input" type="text" name="&lt;%= key %&gt;"  placeholder="&lt;%= userData[key] %&gt;"/&gt;
  
          &lt;% }else{ %&gt;
          //do something
      &lt;%  } %&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>i've tried to define a variable beforehand and check the value of the definitions</p>