thymeleaf 0.1.0-beta.1

A framework-neutral Thymeleaf-compatible dynamic template engine for Rust
%TEMPLATE_MODE HTML
# ------------------------------------------------------------
%CONTEXT
product1 = #{ 'name': 'Lettuce',\
              'price': 12.0 }
product2 = #{ 'name': 'Apricot',\
              'price': 8.0 }
products = { product1, product2 }
# ------------------------------------------------------------
%INPUT
<tbody th:ref="productTemplate" th:remove="all">
  <tr class="my-class">
      <td th:text="${productName}">product name</td>
      <td th:text="${productPrice}">product price</td>
  </tr>
</tbody>
<table>
  <tr th:each="product : ${products}" th:insert="::productTemplate//td"
      th:with="productName=${product.name}, productPrice=${product.price}" />
</table>
# ------------------------------------------------------------
%OUTPUT
<table>
  <tr>
    <td>Lettuce</td>
    <td>12.0</td>
  </tr>
  <tr>
    <td>Apricot</td>
    <td>8.0</td>
  </tr>
</table>