Skip to content

Commit

Permalink
Added test for thymeleaf/thymeleaf#546
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfernandez committed Apr 4, 2017
1 parent 02f9c6f commit a0b8138
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* =============================================================================
*
* Copyright (c) 2011-2016, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
package org.thymeleaf.templateengine.features.expression;

public class ExpBean1 {

public String value = "a value";
public String code = "a code";

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%TEMPLATE_MODE HTML
# ------------------------------------------------------------
%CONTEXT
bean1 = new org.thymeleaf.templateengine.features.expression.ExpBean1()
# ------------------------------------------------------------
%INPUT
<span th:text="${bean1.value}">...</span>
<span th:text="${bean1.code}">...</span>
# ------------------------------------------------------------
%OUTPUT
<span>a value</span>
<span>a code</span>

0 comments on commit a0b8138

Please sign in to comment.