From 517486fd5e5d6592199f18692fe22d76cd021745 Mon Sep 17 00:00:00 2001 From: thomas yang Date: Sun, 29 Mar 2020 16:42:32 +0900 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=20beetl=20?= =?UTF-8?q?=E7=9A=84=20demo=20=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nutzboot-demo-simple-beetl/pom.xml | 7 +------ .../src/main/resources/application.properties | 6 +++++- .../src/main/resources/template/index.html | 3 ++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/pom.xml b/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/pom.xml index 226fe37f..44ecd9db 100644 --- a/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/pom.xml +++ b/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/pom.xml @@ -24,14 +24,9 @@ org.slf4j slf4j-log4j12 - - org.antlr - antlr4-runtime - 4.5 - org.nutz nutzboot-starter-shiro - \ No newline at end of file + diff --git a/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/application.properties b/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/application.properties index 08aef92d..26fe7883 100644 --- a/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/application.properties +++ b/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/application.properties @@ -1,2 +1,6 @@ server.port=8080 -server.host=0.0.0.0 \ No newline at end of file +server.host=0.0.0.0 +beetl.DELIMITER_PLACEHOLDER_START2=<%= +beetl.DELIMITER_PLACEHOLDER_END2=%> +beetl.DELIMITER_STATEMENT_START2=<% +beetl.DELIMITER_STATEMENT_END2=%> diff --git a/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/template/index.html b/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/template/index.html index d7e4a592..e28dc8b3 100644 --- a/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/template/index.html +++ b/nutzboot-demo/nutzboot-demo-simple/nutzboot-demo-simple-beetl/src/main/resources/template/index.html @@ -10,7 +10,8 @@

From Action name=${obj.name}, age=${obj.age}

+

From Action name=<%= obj.name %>, age=<%= obj.age %>

- \ No newline at end of file +