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
%TEMPLATE_MODE HTML
# ------------------------------------------------------------
%CONTEXT
x = 2
# ------------------------------------------------------------
%INPUT
<p th:inline="none">
    This should not be replaced: [[${x}]]
    <span th:inline="html">But this should: [[${x}]]</span>
</p>
# ------------------------------------------------------------
%OUTPUT
<p>
    This should not be replaced: [[${x}]]
    <span>But this should: 2</span>
</p>