Skip to content

Commit 311ebdd

Browse files
Added test for thymeleaf/thymeleaf#546
1 parent b0e06df commit 311ebdd

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>

0 commit comments

Comments
 (0)