| <#-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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. |
| --> |
| <#list array as item> |
| ${item} |
| </#list> |
| ${array?size} |
| ${array[0]} |
| ${array[1]} |
| <#list list as item> |
| ${item} |
| </#list> |
| ${list.size()} |
| <#if list.isEmpty()>empty<#else>not empty</#if> |
| ${list[0]} |
| ${map.key} |
| ${map(objKey)} |
| ${obj.foo} |
| <#if obj.foo?exists>hasfoo<#else>nofoo</#if> |
| <#if obj.baz?exists>hasbaz<#else>nobaz</#if> |
| ${obj.bar[0]} |
| ${obj.bar(0)} |
| ${obj.getFoo()} |
| ${obj.overloaded(1?int)} |
| ${obj.overloaded("String")} |
| ${resourceBundle.message} |
| ${resourceBundle("format", date)} |
| <#assign static = statics["freemarker.test.templatesuite.models.BeanTestClass"]> |
| ${static.staticMethod()} |
| ${static.staticOverloaded[1]} |
| ${static.staticOverloaded("String")} |
| ${static.STATIC_FINAL_FIELD} |
| ${static.STATIC_FIELD} |
| <#assign enum = enums["freemarker.test.templatesuite.models.EnumTestClass"]> |
| ${enum.ONE} |
| ${enum.TWO} |
| ${enum.THREE} |
| ${(enum.ONE == enum.ONE)?string("true", "false")} |
| ${(enum.ONE == enum.TWO)?string("true", "false")} |
| ${enums["freemarker.test.templatesuite.models.BeanTestClass"]?exists?string("true", "false")} |
| ${obj.something} |
| ${obj.publicInner.x} |
| ${obj.publicInner.m()} |
| <@assertFails message="obj.privateInner.x">${obj.privateInner.x}</@> |
| <@assertFails message="obj.privateInner.m">${obj.privateInner.m()}</@> |