File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
java/org/thymeleaf/templateengine/features/expression
resources/templateengine/features/expression Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * =============================================================================
3
+ *
4
+ * Copyright (c) 2011-2016, The THYMELEAF team (http://www.thymeleaf.org)
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * =============================================================================
19
+ */
20
+ package org .thymeleaf .templateengine .features .expression ;
21
+
22
+ public class ExpBean1 {
23
+
24
+ public String value = "a value" ;
25
+ public String code = "a code" ;
26
+
27
+ }
Original file line number Diff line number Diff line change
1
+ %TEMPLATE_MODE HTML
2
+ # ------------------------------------------------------------
3
+ %CONTEXT
4
+ bean1 = new org.thymeleaf.templateengine.features.expression.ExpBean1()
5
+ # ------------------------------------------------------------
6
+ %INPUT
7
+ <span th:text="${bean1.value}">...</span>
8
+ <span th:text="${bean1.code}">...</span>
9
+ # ------------------------------------------------------------
10
+ %OUTPUT
11
+ <span>a value</span>
12
+ <span>a code</span>
You can’t perform that action at this time.
0 commit comments