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
%TEMPLATE_MODE TEXT
# ------------------------------------------------------------
%CONTEXT
text = 'Hello!'
# ------------------------------------------------------------
%INPUT
<div>[#th:block th:text="${text}"]
    <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>Hello!</div>