title: Getting form data in nodeJS with Jade
body: <p>I am trying to make my first website in NodeJS with Jade and Express. Now I want to make a form on a page called Lipinsky but I can't figure out how I can store the input into a variable.
  I tried console.logging res and req and they're big objects without any body, so req.body is undefined. 
  My app.js for rendering and getting the form looks like this:</p>
  
  <pre><code>app.get('/lipinsky', function (req, res, next) {
    try {
      let html = lipinsky({ title: 'Lipinsky RO5' })
      res.send(html)
    } catch (e) {
      next(e)
    }
  })
  
  app.post('/lipinsky', function (req, res) {
      let html = lipinsky({ title: 'Lipinsky RO5' })
      res.send(html);
  });
  </code></pre>
  
  <p>And my lipinsky.jade is:</p>
  
  <pre><code>extend default
  
  block content
    h3.
      Lipinsky rule of five calculator
  
    p.
      Calculate Lipinsky RO5 for molecules with a known CAS registry number.
    div
    form(action='/lipinsky',method='post')
      div(data-role='fieldcontain')
        fieldset(data-role='controlgroup')
          label(for='name') Molecule name 
             input(id='name',type='text',value='',name='name')
  </code></pre>
  
  <p>So I don't know if I'm doing it right and how to get the entered form data into a variable in app.js.</p>