Handlebar compile error if template is not well-formed html

122 Views Asked by At

I am using handlebar as a templating framework. When the template get compiled, in case it is not well-formed html, there should be exception thrown. Does handlebar have such a feature?

For example the following template is not well-formed as the img tag is not properly closed.

<head>
  <meta charset="utf-8"/>
  <title>Template</title>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="col">
        <img src="logo.jpg">
      </div>
    </div>
  </div>
</body>
</html>
0

There are 0 best solutions below