mubanjs / muban-template

Templating library for use with Muban
0 stars 1 forks source link

Provide better error response when template parsing fails #3

Closed ThaNarie closed 2 years ago

ThaNarie commented 2 years ago

Add a wrapper around the export to catch errors and output the template where the error happened.

Also add basic unit tests.

Example error:

    Error parsing muban template. Most likely, your html template is malformed.

    The template that gave the error is:
    <div data-test="${}"<span>foo</span></div>

fixes #2