aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/test/resources/tests/simple.thtest
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-24 00:24:20 +0700
committerGravatar Vitaly Takmazov2016-11-24 12:05:10 +0300
commitc207b80dd642dd8d5c18340fa5982a3c61ead460 (patch)
tree618827283da96dbf90eb4fca62c0f2f3173f811a /juick-spring-www/src/test/resources/tests/simple.thtest
parente7fd58f1023ce9e1c9ab880bf27c5c0b2a3cffca (diff)
simple thymeleaf test is added
Diffstat (limited to 'juick-spring-www/src/test/resources/tests/simple.thtest')
-rw-r--r--juick-spring-www/src/test/resources/tests/simple.thtest25
1 files changed, 25 insertions, 0 deletions
diff --git a/juick-spring-www/src/test/resources/tests/simple.thtest b/juick-spring-www/src/test/resources/tests/simple.thtest
new file mode 100644
index 00000000..1505a382
--- /dev/null
+++ b/juick-spring-www/src/test/resources/tests/simple.thtest
@@ -0,0 +1,25 @@
+%TEMPLATE_MODE HTML
+# ------------ separator comment -----------
+%CONTEXT
+onevar = 'Goodbye,'
+# ------------------------------------------
+%MESSAGES
+one.msg = Crisis
+# ------------------------------------------
+%INPUT
+<!DOCTYPE html>
+<html>
+ <body>
+ <span th:text="${onevar}">Hello,</span>
+ <span th:text="#{one.msg}">World!</span>
+ </body>
+</html>
+# ------------------------------------------
+%OUTPUT
+<!DOCTYPE html>
+<html>
+ <body>
+ <span>Goodbye,</span>
+ <span>Crisis</span>
+ </body>
+</html> \ No newline at end of file