Error happened during template parsing

Enonic version: 6.15.3

I’m working through the tutorial here:

When I add the region template I get an error parsing, although the html seems legit.

An error happened during template parsing (template: "com.fitch.test:/site/pages/hello-region/hello-region.html") (com.enonic.xp.resource.ResourceProblemException)

In MY_SITE:/site/pages/hello-region/hello-region.html at line 0

Line 0 is just the doctype declaration. Template included below, but its just copied from the tutorial. How can I debug this?

<!DOCTYPE html>
<title>Hello world</title>
<div data-portal-region="main">
<div data-th-if="${mainRegion}" data-th-each="component : ${mainRegion.components}" data-th-remove="tag">
    <div data-portal-component="${component.path}" data-th-remove="tag"></div>

there was a problem with the corresponding xml file

1 Like