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
18
%TEMPLATE_MODE HTML
# ------------------------------------------------------------
%CONTEXT
someVar = 'Hi there!'
# ------------------------------------------------------------
%INPUT
<p>before</p>
<data th:inline="text" th:remove="tag" th:include="inlined">...</data>
<p>after</p>
# ------------------------------------------------------------
%INPUT[inlined]
[[${someVar}]]
# ------------------------------------------------------------
%OUTPUT
<p>before</p>
Hi there!
<p>after</p>