Error happened during template parsing

Enonic version: 6.15.3
OS: OSX

I’m working through the tutorial here:
https://xp.readthedocs.io/en/stable/tutorials/my-first-app/add-favorite-country.html

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>
<html>
<head>
<title>Hello world</title>
</head>
<body>
<h1>Country</h1>
<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>
</div>
</div>
</body>
</html>

there was a problem with the corresponding xml file

1 Like