The Xplorer HTML templating is based on Thymeleaf but made simpler and focused to work directly with simple JavaScript.
Here are some simple examples to get you going:
Use the th:text attribute. Typically use a <span> to be inline with other text.
th:text
<span>
Job Number: <span th:text="response.body.Job.JobNumber"></span>
Use the th:each attribute, which defines the "loop variable". Here below is an example of manually rendering an HTML table.
th:each
<table class="table table-bordered table-sm"> <tr> <th>ID</th> <th>Image</th> </tr> <tr th:each="row: response.body"> <td th:text="row.id"></td> <td> <img th:src="row.download_url" height="100px"/> </td> </tr> </table>
There was an error while loading. Please reload this page.