http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-convert2.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-convert2.ftl b/src/test/resources/freemarker/manual/AutoEscapingExample-convert2.ftl index c71b9be..e604816 100644 --- a/src/test/resources/freemarker/manual/AutoEscapingExample-convert2.ftl +++ b/src/test/resources/freemarker/manual/AutoEscapingExample-convert2.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#outputformat "HTML"><#assign htmlMO><p>Test</#assign></#outputformat> <#outputformat "XML"><#assign xmlMO><p>Test</p></#assign></#outputformat> <#outputformat "RTF"><#assign rtfMO>\par Test</#assign></#outputformat>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh index 932e541..e1612fe 100644 --- a/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh +++ b/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh @@ -1,3 +1,21 @@ +<#-- + 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. +--> <@infoBox "Foo & bar" /> <@infoBox "Foo <b>bar</b>"?no_esc /> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh index 2f18398..1d9ea95 100644 --- a/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh +++ b/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign markupOutput1="<b>Test</b>"?no_esc> <#assign markupOutput2="Foo & bar"?esc> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh index f9e2806..a2ef2db 100644 --- a/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh +++ b/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh @@ -1 +1,19 @@ +<#-- + 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. +--> ${"<h1>"?no_esc + "Foo & bar" + "</h1>"?no_esc} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh index 4bec8e4..1b6f5ad 100644 --- a/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh +++ b/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign s = "Foo & bar"> ${s} ${"${s} & baz"} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh index a939431..f8c81c5 100644 --- a/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh +++ b/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#-- Markup output value created by escaping plain text: --> <#assign mo1 = "Foo & bar"?esc> <#-- Markup output value created outherwise: --> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh b/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh index abf6dfe..24c4a9f 100644 --- a/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh +++ b/src/test/resources/freemarker/manual/CustomFormatsExample-alias1.ftlh @@ -1,3 +1,21 @@ +<#-- + 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. +--> ${p?string.@price} ${w?string.@weight} ${fd?string.@fileDate} http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh b/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh index ae64acb..49dffe9 100644 --- a/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh +++ b/src/test/resources/freemarker/manual/CustomFormatsExample-alias2.ftlh @@ -1 +1,19 @@ +<#-- + 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. +--> ${10?string.@oct} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh b/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh index 49ce264..1ca5e69 100644 --- a/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh +++ b/src/test/resources/freemarker/manual/CustomFormatsExample-modelAware.ftlh @@ -1,2 +1,20 @@ +<#-- + 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. +--> ${10.12356} ${weight} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/test.ftlh ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/manual/test.ftlh b/src/test/resources/freemarker/manual/test.ftlh index 890b827..833816e 100644 --- a/src/test/resources/freemarker/manual/test.ftlh +++ b/src/test/resources/freemarker/manual/test.ftlh @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>Welcome!</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/template/toCache1.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/template/toCache1.ftl b/src/test/resources/freemarker/template/toCache1.ftl index 11b8a94..49f4ede 100644 --- a/src/test/resources/freemarker/template/toCache1.ftl +++ b/src/test/resources/freemarker/template/toCache1.ftl @@ -1 +1,19 @@ +<#-- + 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. +--> Template 1 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/template/toCache2.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/template/toCache2.ftl b/src/test/resources/freemarker/template/toCache2.ftl index 840e7bd..9d8a1c5 100644 --- a/src/test/resources/freemarker/template/toCache2.ftl +++ b/src/test/resources/freemarker/template/toCache2.ftl @@ -1 +1,19 @@ +<#-- + 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. +--> Template 2 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/api-builtins.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/api-builtins.ftl b/src/test/resources/freemarker/test/templatesuite/templates/api-builtins.ftl index c8deb1c..ce5fc9f 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/api-builtins.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/api-builtins.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <@assertEquals expected="b" actual=map?api.get(2?int) /> <@assertEquals expected=2 actual=list?api.indexOf(3?int) /> <@assert test=set?api.contains("b") /> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/arithmetic.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/arithmetic.ftl b/src/test/resources/freemarker/test/templatesuite/templates/arithmetic.ftl index aea3a60..19b8228 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/arithmetic.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/arithmetic.ftl @@ -1,4 +1,22 @@ [#ftl] +[#-- + 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. +--] <html> <head> <title>FreeMarker: Arithmetic Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/assignments.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/assignments.ftl b/src/test/resources/freemarker/test/templatesuite/templates/assignments.ftl index efa7921..8fbb725 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/assignments.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/assignments.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign x = 1> <@assertEquals expected=1 actual=x /> <#assign x = x + 1> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/bean-maps.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/bean-maps.ftl b/src/test/resources/freemarker/test/templatesuite/templates/bean-maps.ftl index 52ce024..e8651b8 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/bean-maps.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/bean-maps.ftl @@ -1,4 +1,22 @@ [#ftl] +[#-- + 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. +--] [#macro test hash desc] http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/beans.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/beans.ftl b/src/test/resources/freemarker/test/templatesuite/templates/beans.ftl index bc95e16..54087f9 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/beans.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/beans.ftl @@ -1,3 +1,21 @@ +<#-- + 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> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/boolean-formatting.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/boolean-formatting.ftl b/src/test/resources/freemarker/test/templatesuite/templates/boolean-formatting.ftl index 0d4c3a1..6ccc6ca 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/boolean-formatting.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/boolean-formatting.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign suppress> <@assertFails message="true,false">${true}</@> <@assertFails message="true,false">${false}</@> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/boolean.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/boolean.ftl b/src/test/resources/freemarker/test/templatesuite/templates/boolean.ftl index c647e73..f0c9edc 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/boolean.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/boolean.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Boolean Values Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl b/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl index e417846..3be3755 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header.ftl @@ -1,4 +1,22 @@ <#ftl encoding="ISO-8859-2"> +<#-- + 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. +--> <head> <meta http-equiv="Content-type" content="text/html; charset=UTF-8"> </head> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl b/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl index 81ef688..6c625d5 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc1.ftl @@ -1,2 +1,20 @@ <#ftl encoding="ISO-8859-1"> +<#-- + 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. +--> ���� http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl index ccf573d..68427b1 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/charset-in-header_inc2.ftl @@ -1 +1,19 @@ +<#-- + 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. +--> ���� http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible-mode2.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible-mode2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible-mode2.ftl index d4a80bf..6a27bb1 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible-mode2.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible-mode2.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <@assertEquals expected="" actual=""+false /> <@assertEquals expected="true" actual=""+true /> <@assertEquals expected="false" actual=false?string /> <#-- In 2.1 bool?string was error, now it does what 2.3 does --> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible.ftl b/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible.ftl index 6e548ba..c3a3ffb 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/classic-compatible.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> [${noSuchVar}] [${noSuchVar!'null'}] [${noSuchVar.foo.bar}] [${noSuchVar.foo.bar!'null'}] [${noSuchVar['foo']}] [${noSuchVar['foo']!'null'}] http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/comment.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/comment.ftl b/src/test/resources/freemarker/test/templatesuite/templates/comment.ftl index 1068b24..7bf18b9 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/comment.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/comment.ftl @@ -1,4 +1,22 @@ <#ftl strict_syntax=false> +<#-- + 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. +--> <html> <head> <title>FreeMarker: Comment Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/comparisons.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/comparisons.ftl b/src/test/resources/freemarker/test/templatesuite/templates/comparisons.ftl index 177087b..60c7ac4 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/comparisons.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/comparisons.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Numeric Operations Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/compress.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/compress.ftl b/src/test/resources/freemarker/test/templatesuite/templates/compress.ftl index 9e7c38a..ebc40f4 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/compress.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/compress.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Compress Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/date-type-builtins.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/date-type-builtins.ftl b/src/test/resources/freemarker/test/templatesuite/templates/date-type-builtins.ftl index a7d0a7e..7773220 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/date-type-builtins.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/date-type-builtins.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#setting time_zone = "UTC"> <@assert test=unknown?is_unknown_date_like /> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-common.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-common.ftl b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-common.ftl index bc55722..d70a854 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-common.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-common.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign d = "2010-05-15 22:38:05:23 +0200"?datetime("yyyy-MM-dd HH:mm:ss:S Z")> <#setting time_zone="GMT+02"> <@assertEquals actual=d?iso_utc expected="2010-05-15T20:38:05Z" /> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-ici-2.3.21.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-ici-2.3.21.ftl b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-ici-2.3.21.ftl index 2ce0d61..03ffd00 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-ici-2.3.21.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi-ici-2.3.21.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#include "dateformat-iso-bi-common.ftl"> <#setting time_zone="GMT+02"> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi.ftl b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi.ftl index 0ff2d55..c2d7ad4 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-bi.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#include "dateformat-iso-bi-common.ftl"> <#setting time_zone="GMT+02"> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-like.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-like.ftl b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-like.ftl index 3e2d1c2..36f172c 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-like.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-iso-like.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign d = "2010-05-15 22:38:05:23 +0200"?datetime("yyyy-MM-dd HH:mm:ss:S Z")> <#setting time_zone="GMT+02"> <@assertEquals actual=d?string.xs expected="2010-05-15T22:38:05.023+02:00" /> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/dateformat-java.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-java.ftl b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-java.ftl index 07f3e88..df38992 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/dateformat-java.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/dateformat-java.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#setting locale="en_US"> <#setting time_zone="GMT"> <#setting datetime_format=""> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/dateparsing.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/dateparsing.ftl b/src/test/resources/freemarker/test/templatesuite/templates/dateparsing.ftl index 64a427c..4ea56a0 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/dateparsing.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/dateparsing.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#setting locale="en_US"> <#setting time_zone="GMT"> <#setting datetime_format="G yyyy-MM-dd HH:mm:ss.S Z"> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/default-xmlns.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/default-xmlns.ftl b/src/test/resources/freemarker/test/templatesuite/templates/default-xmlns.ftl index 8c54efb..4180a4c 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/default-xmlns.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/default-xmlns.ftl @@ -1,4 +1,22 @@ <#ftl ns_prefixes={"D" : "http://x.com", "y" : "http://y.com"}> +<#-- + 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. +--> <#assign r = doc.*[0]> ${r["N:t1"]?default('-')} = No NS ${r["t2"]?default('-')} = x NS http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/default.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/default.ftl b/src/test/resources/freemarker/test/templatesuite/templates/default.ftl index 32e454b..e099a1c 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/default.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/default.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> ${UNDEFINED!"foo"} <#assign duck = (FOO.BAR)!"luck"> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/encoding-builtins.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/encoding-builtins.ftl b/src/test/resources/freemarker/test/templatesuite/templates/encoding-builtins.ftl index 17797c3..f7694ed 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/encoding-builtins.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/encoding-builtins.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> FreeMarker: Encoding built-in tests <#assign x = "&<>\"'{}\\a/"> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/escapes.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/escapes.ftl b/src/test/resources/freemarker/test/templatesuite/templates/escapes.ftl index 5ed9a0e..38dec30 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/escapes.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/escapes.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign h=["","a","b","c"]> <#assign g={"x":1,"y":2,"z":3}> <#escape x as h[x]> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/exception.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/exception.ftl b/src/test/resources/freemarker/test/templatesuite/templates/exception.ftl index d52605f..99ff116 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/exception.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/exception.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Exception Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/exception2.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/exception2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/exception2.ftl index d52605f..99ff116 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/exception2.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/exception2.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Exception Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/exception3.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/exception3.ftl b/src/test/resources/freemarker/test/templatesuite/templates/exception3.ftl index 354e61c..2b90f7c 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/exception3.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/exception3.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Exception Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/existence-operators.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/existence-operators.ftl b/src/test/resources/freemarker/test/templatesuite/templates/existence-operators.ftl index bd1f33e..f55623b 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/existence-operators.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/existence-operators.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <@isIRE>${v}</@> <@isIRE>${w}</@> <@isNonFastIRE>${v}</@> <#-- To check that it isn't an IRE.FAST_INSTANCE --> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/exthash.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/exthash.ftl b/src/test/resources/freemarker/test/templatesuite/templates/exthash.ftl index 01114c6..b0b334f 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/exthash.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/exthash.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Extended Hash Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/hashconcat.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/hashconcat.ftl b/src/test/resources/freemarker/test/templatesuite/templates/hashconcat.ftl index cc4218c..6831379 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/hashconcat.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/hashconcat.ftl @@ -1,4 +1,22 @@ [#ftl] +[#-- + 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. +--] [#assign a = {"a":1, "b":2, "c":3, "X": 4}] [#assign b = {"d":10, "e":20, "f":30, "X": 40}] http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/hashliteral.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/hashliteral.ftl b/src/test/resources/freemarker/test/templatesuite/templates/hashliteral.ftl index a26bb7f..8374a5e 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/hashliteral.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/hashliteral.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Hash Literal Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/helloworld.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/helloworld.ftl b/src/test/resources/freemarker/test/templatesuite/templates/helloworld.ftl index 3de43d6..c026d1c 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/helloworld.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/helloworld.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Exec Model Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/identifier-escaping.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/identifier-escaping.ftl b/src/test/resources/freemarker/test/templatesuite/templates/identifier-escaping.ftl index 5e968b7..1c62c43 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/identifier-escaping.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/identifier-escaping.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#macro m\-a data\-color> <#local \.namespace = 123> <a-b>${data\-color}<#nested \.namespace></a-b><#t> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/identifier-non-ascii.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/identifier-non-ascii.ftl b/src/test/resources/freemarker/test/templatesuite/templates/identifier-non-ascii.ftl index 2ced521..d0193ad 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/identifier-non-ascii.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/identifier-non-ascii.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#macro árvÃztűrÅTükörfúrógép ×ֶקס×>${×ֶקס×}</#macro> <#assign íêµì´_í¤ë³´ë="Korean Keyboard"> <@árvÃztűrÅTükörfúrógép íêµì´_í¤ë³´ë /> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/if.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/if.ftl b/src/test/resources/freemarker/test/templatesuite/templates/if.ftl index df9f19c..c17b979 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/if.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/if.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#assign x = 1> - <#if x == 1>good</#if> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/import.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/import.ftl b/src/test/resources/freemarker/test/templatesuite/templates/import.ftl index 43642de..783b3b7 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/import.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/import.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> -- <#-- import "/import_lib.ftl" as my --> -- http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/import_lib.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/import_lib.ftl b/src/test/resources/freemarker/test/templatesuite/templates/import_lib.ftl index daa2e38..a4c5f16 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/import_lib.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/import_lib.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#macro test foo> Test ${foo}. Email: ${mail} http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/include.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/include.ftl b/src/test/resources/freemarker/test/templatesuite/templates/include.ftl index 3b4c86d..400fcbb 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/include.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/include.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Include Instruction Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/include2-included-encoding.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/include2-included-encoding.ftl b/src/test/resources/freemarker/test/templatesuite/templates/include2-included-encoding.ftl index fa47800..4d8de2e 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/include2-included-encoding.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/include2-included-encoding.ftl @@ -1,2 +1,20 @@ <#ftl encoding='utf-8'> +<#-- + 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. +--> ${'A'} próba http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/include2-included.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/include2-included.ftl b/src/test/resources/freemarker/test/templatesuite/templates/include2-included.ftl index fcfd3f2..5001f25 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/include2-included.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/include2-included.ftl @@ -1 +1,19 @@ +<#-- + 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. +--> ${'A'} próba http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/include2.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/include2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/include2.ftl index 50a9bf5..d51def1 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/include2.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/include2.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#include "include2" + "-included.ftl"> <#assign s = "de"> <#include "inclu" + s + "2-included.ftl"> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/included.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/included.ftl b/src/test/resources/freemarker/test/templatesuite/templates/included.ftl index 61c6499..8b36ba2 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/included.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/included.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <p>A test of included files:</p> <#if .globals.message?exists> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/interpret.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/interpret.ftl b/src/test/resources/freemarker/test/templatesuite/templates/interpret.ftl index 46f6197..7d44c2e 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/interpret.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/interpret.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <#global x=["a", "b", "c"]> <#global templateSource = r"<#foreach y in x>${y}</#foreach>"> <#transform templateSource?interpret>def</#transform> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/iterators.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/iterators.ftl b/src/test/resources/freemarker/test/templatesuite/templates/iterators.ftl index eeffdc5..8c40441 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/iterators.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/iterators.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: List Iterator Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/lastcharacter.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/lastcharacter.ftl b/src/test/resources/freemarker/test/templatesuite/templates/lastcharacter.ftl index bdefb3c..b5f2cd3 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/lastcharacter.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/lastcharacter.ftl @@ -1,3 +1,21 @@ +<#-- + 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. +--> <html> <head> <title>FreeMarker: Last Character Test</title> http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/list-bis.ftl ---------------------------------------------------------------------- diff --git a/src/test/resources/freemarker/test/templatesuite/templates/list-bis.ftl b/src/test/resources/freemarker/test/templatesuite/templates/list-bis.ftl index 50cceac..8c4fde3 100644 --- a/src/test/resources/freemarker/test/templatesuite/templates/list-bis.ftl +++ b/src/test/resources/freemarker/test/templatesuite/templates/list-bis.ftl @@ -1,3 +1,21 @@ +<#-- + 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 ['a', 'b', 'c'] as x> ${x?index}: ${x} [<#list ['A', 'B', 'C'] as x>${x?index}:${x}<#sep>, </#list>] </#list>
