diff --git a/thymeleaf/src/main/resources/sample.html b/thymeleaf/src/main/resources/sample.html index c238f54..3a18010 100644 --- a/thymeleaf/src/main/resources/sample.html +++ b/thymeleaf/src/main/resources/sample.html @@ -7,6 +7,8 @@

NAME

-

+

ONLY IN ROOT

+

with Text:

+

with UText:

diff --git a/thymeleaf/src/test/java/kr/pe/elex/examples/ThymeleafTest.java b/thymeleaf/src/test/java/kr/pe/elex/examples/ThymeleafTest.java index 35f6d31..1768066 100644 --- a/thymeleaf/src/test/java/kr/pe/elex/examples/ThymeleafTest.java +++ b/thymeleaf/src/test/java/kr/pe/elex/examples/ThymeleafTest.java @@ -20,8 +20,9 @@ class ThymeleafTest { @Test void test() throws IOException { Context context = new Context(); - ///context.setLocale(Locale.ENGLISH); + //context.setLocale(Locale.ENGLISH); context.setVariable("person", new Person("Charlie", 14)); + context.setVariable("html", "Hahaha"); Thymeleaf thymeleaf = new Thymeleaf(); String out = thymeleaf.process("sample.html", context);