thymeleaf 0.1.0-beta.1

A framework-neutral Thymeleaf-compatible dynamic template engine for Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%TEMPLATE_MODE HTML
# ------------------------------------------------------------
%CONTEXT
caps = {}
# ------------------------------------------------------------
%INPUT
<div>
  <th:block th:each="c : ${caps}">
    <span th:text="${cStat.count}">0</span>
    <p th:text="${c.city}">City</p>
    <span th:text="${c.country}">Country</span>
  </th:block>
</div>
# ------------------------------------------------------------
%OUTPUT
<div>
</div>