title: Handlebars - Expecting 'OPEN_INVERSE_CHAIN', 'INVERSE', 'OPEN_ENDBLOCK', got 'EOF'
body: <p>I am trying out handlebars and I am using the following simple template for this:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;&lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;h1&gt;{{title}}&lt;/h1&gt;
      &lt;p&gt;{{body}}&lt;/p&gt;
  
      {{#each list}}
      &lt;ul&gt;
          &lt;li&gt;{{@index}}. {{this}}&lt;/li&gt;
      &lt;/ul&gt;
      &lt;/br&gt;
      {{{htmlTag}}} 
  
      {{#if user.admin}}
      &lt;button class="launch"&gt;Launch Spacecraft&lt;/button&gt; {{else}}
      &lt;button class="login"&gt; Log in&lt;/button&gt; 
      {{/if}} 
      {{!-- This is a comment --}}
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My <code>app.js</code> looks like the following:</p>
  
  <pre><code>require('dotenv').config()
  const express = require('express')
  const logger= require('morgan')
  const path = require('path')
  
  const app = express()
  
  app.set('views', path.join(__dirname, 'views'))
  app.set('view engine', 'hbs')
  app.use(logger(process.env.LOG_ENV))
  
  app.get('/', (req, res) =&gt; {
      const titel = "This is a titel"
      const body = "Lorem ipsum dolor sit amen ..."
      const list = ['apple', 'banana', 'vegetable']
      const htmlTag = '&lt;h2&gt;This is an unescaped Heading&lt;/h2&gt;'
      const user = {
      admin: true
    }
      res.render('index',{titel, body, list, htmlTag, user})
  })
  
  
  // Start Server
  const port = process.env.APP_PORT || 8080
  const host = process.env.APP_URL || '0.0.0.0'
  
  app.listen(port, host, () =&gt; {
      console.log(`Listening on ${host}:${port}/`)
  })
  
  module.exports = app
  </code></pre>
  
  <p>When I render the page, I get the following error:</p>
  
  <blockquote>
    <p>Error: /home/ubuntu/workspace/src/views/index.hbs: Parse error on line
    20:
        ...}}
        -------------------^
        Expecting 'OPEN_INVERSE_CHAIN', 'INVERSE', 'OPEN_ENDBLOCK', got 'EOF'
            at Object.parseError (/home/ubuntu/workspace/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:267:19)
            at Object.parse (/home/ubuntu/workspace/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:336:30)
            at HandlebarsEnvironment.parse (/home/ubuntu/workspace/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js:46:43)
            at compileInput (/home/ubuntu/workspace/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:514:19)
            at ret (/home/ubuntu/workspace/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:523:18)
            at /home/ubuntu/workspace/node_modules/hbs/lib/hbs.js:63:19
            at tryToString (fs.js:456:3)
            at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)</p>
  </blockquote>
  
  <p>Any suggestion what I am doing wrong within my template?</p>
  
  <p>I appreciate your reply!</p>