You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2015/12/31 01:14:45 UTC
[1/7] incubator-freemarker git commit: <#ftl outputFormat="HTML">
headers aren't needed with the latest Eclipse plugin anymore,
though "latest" means the one with my pull request to JBoss merged in.
Repository: incubator-freemarker
Updated Branches:
refs/heads/2.3 f0695c39a -> 71117cc29
<#ftl outputFormat="HTML"> headers aren't needed with the latest Eclipse plugin anymore, though "latest" means the one with my pull request to JBoss merged in.
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/9d255d89
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/9d255d89
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/9d255d89
Branch: refs/heads/2.3
Commit: 9d255d897a15a5bfb6045f23b5e16edee7ba3cb6
Parents: be2d799
Author: ddekany <dd...@apache.org>
Authored: Wed Dec 30 20:46:22 2015 +0100
Committer: ddekany <dd...@apache.org>
Committed: Wed Dec 30 20:47:54 2015 +0100
----------------------------------------------------------------------
.../resources/freemarker/manual/AutoEscapingExample-capture.ftlh | 1 -
.../resources/freemarker/manual/AutoEscapingExample-convert.ftlh | 2 --
.../resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh | 2 --
.../freemarker/manual/AutoEscapingExample-infoBox.ftlh.out | 1 -
.../resources/freemarker/manual/AutoEscapingExample-markup.ftlh | 1 -
.../freemarker/manual/AutoEscapingExample-stringConcat.ftlh | 1 -
.../freemarker/manual/AutoEscapingExample-stringLiteral.ftlh | 1 -
.../freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh | 2 --
8 files changed, 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
index 565bf6a..d371b44 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
@@ -1,4 +1,3 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
<#assign captured><b>Test</b></#assign>
Just a string: ${"<b>Test</b>"}
Captured output: ${captured}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
index 165e1cf..e7eadaf 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
@@ -1,5 +1,3 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
-
<#assign mo1 = "Foo's bar {}"?esc>
HTLM: ${mo1}
XML: <#outputformat 'XML'>${mo1}</#outputformat>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/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 23c1186..932e541 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh
@@ -1,5 +1,3 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
-
<@infoBox "Foo & bar" />
<@infoBox "Foo <b>bar</b>"?no_esc />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh.out
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh.out b/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh.out
index 04d5d20..640f8a9 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh.out
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-infoBox.ftlh.out
@@ -1,4 +1,3 @@
-
<div class="infoBox">
Foo & bar
</div>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/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 9f7af37..2f18398 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-markup.ftlh
@@ -1,4 +1,3 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
<#assign markupOutput1="<b>Test</b>"?no_esc>
<#assign markupOutput2="Foo & bar"?esc>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/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 905f10e..f9e2806 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-stringConcat.ftlh
@@ -1,2 +1 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
${"<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/9d255d89/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 2d3b930..4bec8e4 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral.ftlh
@@ -1,4 +1,3 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
<#assign s = "Foo & bar">
${s}
${"${s} & baz"}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9d255d89/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 060b000..a939431 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-stringLiteral2.ftlh
@@ -1,5 +1,3 @@
-<#ftl output_format="HTML"><#-- Needed for the Eclipse plugin -->
-
<#-- Markup output value created by escaping plain text: -->
<#assign mo1 = "Foo & bar"?esc>
<#-- Markup output value created outherwise: -->
[7/7] incubator-freemarker git commit: Merge remote-tracking branch
'origin/2.3-gae' into 2.3
Posted by dd...@apache.org.
Merge remote-tracking branch 'origin/2.3-gae' into 2.3
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/71117cc2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/71117cc2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/71117cc2
Branch: refs/heads/2.3
Commit: 71117cc292b108ab1e6f33095c98c1e12ea303dd
Parents: f0695c3 559381f
Author: ddekany <dd...@apache.org>
Authored: Thu Dec 31 01:13:34 2015 +0100
Committer: ddekany <dd...@apache.org>
Committed: Thu Dec 31 01:13:34 2015 +0100
----------------------------------------------------------------------
src/examples/ant/src/template/faq2html.ftl | 18 +++++
src/examples/struts-webapp/add.ftl | 18 +++++
src/examples/struts-webapp/form.ftl | 18 +++++
src/examples/struts-webapp/index.ftl | 18 +++++
src/examples/struts-webapp/lib/common.ftl | 18 +++++
src/examples/webapp1/WEB-INF/templates/test.ftl | 18 +++++
src/examples/webapp2/WEB-INF/templates/add.ftl | 18 +++++
src/examples/webapp2/WEB-INF/templates/form.ftl | 18 +++++
.../webapp2/WEB-INF/templates/index.ftl | 18 +++++
.../webapp2/WEB-INF/templates/lib/common.ftl | 18 +++++
.../misc/overloadedNumberRules/generator.ftl | 18 +++++
src/test/java/freemarker/core/ASTTest.java | 4 +-
.../CopyrightCommentRemoverTemplateLoader.java | 63 +++++++++++++++
src/test/java/freemarker/test/TestUtil.java | 81 ++++++++++++++++++++
.../test/templatesuite/TemplateTestCase.java | 8 +-
src/test/resources/freemarker/cache/test.ftl | 18 +++++
src/test/resources/freemarker/core/ast-1.ftl | 18 +++++
.../freemarker/core/ast-assignments.ftl | 18 +++++
.../resources/freemarker/core/ast-builtins.ftl | 18 +++++
.../resources/freemarker/core/ast-locations.ftl | 18 +++++
.../core/ast-mixedcontentsimplifications.ftl | 18 +++++
.../core/ast-multipleignoredchildren.ftl | 18 +++++
.../core/ast-nestedignoredchildren.ftl | 18 +++++
.../resources/freemarker/core/ast-range.ftl | 18 +++++
.../freemarker/core/ast-strlitinterpolation.ftl | 18 +++++
.../freemarker/core/ast-whitesoacestripping.ftl | 18 +++++
.../core/cano-assignments-canonical.ftl | 18 +++++
.../freemarker/core/cano-assignments.ftl | 18 +++++
.../freemarker/core/cano-builtins-canonical.ftl | 19 ++++-
.../resources/freemarker/core/cano-builtins.ftl | 18 +++++
.../core/cano-identifier-escaping-canonical.ftl | 19 ++++-
.../core/cano-identifier-escaping.ftl | 18 +++++
.../freemarker/core/cano-macros-canonical.ftl | 18 +++++
.../resources/freemarker/core/cano-macros.ftl | 18 +++++
.../core/cano-strlitinterpolation-canonical.ftl | 19 ++++-
.../core/cano-strlitinterpolation.ftl | 18 +++++
.../core/encodingOverride-ISO-8859-1.ftl | 18 +++++
.../freemarker/core/encodingOverride-UTF-8.ftl | 18 +++++
.../ext/jsp/templates/classpath-test.ftl | 18 +++++
.../ext/jsp/webapps/basic/attributes.ftl | 18 +++++
.../jsp/webapps/basic/customELFunctions1.ftl | 18 +++++
.../ext/jsp/webapps/basic/customTags1.ftl | 18 +++++
.../jsp/webapps/basic/trivial-jstl-@Ignore.ftl | 18 +++++
.../ext/jsp/webapps/basic/trivial.ftl | 18 +++++
.../webapps/config/WEB-INF/classes/sub/test.ftl | 18 +++++
.../jsp/webapps/config/WEB-INF/classes/test.ftl | 18 +++++
.../webapps/config/WEB-INF/templates/test.ftl | 18 +++++
.../freemarker/ext/jsp/webapps/config/test.ftl | 18 +++++
.../ext/jsp/webapps/errors/failing-runtime.ftl | 18 +++++
.../ext/jsp/webapps/errors/not-failing.ftl | 18 +++++
.../multipleLoaders/WEB-INF/templates/test.ftl | 18 +++++
.../webapps/tldDiscovery/subdir/test-rel.ftl | 18 +++++
.../webapps/tldDiscovery/test-noClasspath.ftl | 18 +++++
.../ext/jsp/webapps/tldDiscovery/test1.ftl | 18 +++++
.../manual/AutoEscapingExample-capture.ftlh | 19 ++++-
.../manual/AutoEscapingExample-convert.ftlh | 20 ++++-
.../manual/AutoEscapingExample-convert2.ftl | 18 +++++
.../manual/AutoEscapingExample-infoBox.ftlh | 20 ++++-
.../manual/AutoEscapingExample-infoBox.ftlh.out | 1 -
.../manual/AutoEscapingExample-markup.ftlh | 19 ++++-
.../AutoEscapingExample-stringConcat.ftlh | 19 ++++-
.../AutoEscapingExample-stringLiteral.ftlh | 19 ++++-
.../AutoEscapingExample-stringLiteral2.ftlh | 20 ++++-
.../manual/CustomFormatsExample-alias1.ftlh | 18 +++++
.../manual/CustomFormatsExample-alias2.ftlh | 18 +++++
.../manual/CustomFormatsExample-modelAware.ftlh | 18 +++++
src/test/resources/freemarker/manual/test.ftlh | 18 +++++
.../resources/freemarker/template/toCache1.ftl | 18 +++++
.../resources/freemarker/template/toCache2.ftl | 18 +++++
.../templatesuite/templates/api-builtins.ftl | 18 +++++
.../test/templatesuite/templates/arithmetic.ftl | 18 +++++
.../templatesuite/templates/assignments.ftl | 18 +++++
.../test/templatesuite/templates/bean-maps.ftl | 18 +++++
.../test/templatesuite/templates/beans.ftl | 18 +++++
.../templates/boolean-formatting.ftl | 18 +++++
.../test/templatesuite/templates/boolean.ftl | 18 +++++
.../templates/charset-in-header.ftl | 18 +++++
.../templates/charset-in-header_inc1.ftl | 18 +++++
.../templates/charset-in-header_inc2.ftl | 18 +++++
.../templates/classic-compatible-mode2.ftl | 18 +++++
.../templates/classic-compatible.ftl | 18 +++++
.../test/templatesuite/templates/comment.ftl | 18 +++++
.../templatesuite/templates/comparisons.ftl | 18 +++++
.../test/templatesuite/templates/compress.ftl | 18 +++++
.../templates/date-type-builtins.ftl | 18 +++++
.../templates/dateformat-iso-bi-common.ftl | 18 +++++
.../templates/dateformat-iso-bi-ici-2.3.21.ftl | 18 +++++
.../templates/dateformat-iso-bi.ftl | 18 +++++
.../templates/dateformat-iso-like.ftl | 18 +++++
.../templatesuite/templates/dateformat-java.ftl | 18 +++++
.../templatesuite/templates/dateparsing.ftl | 18 +++++
.../templatesuite/templates/default-xmlns.ftl | 18 +++++
.../test/templatesuite/templates/default.ftl | 18 +++++
.../templates/encoding-builtins.ftl | 18 +++++
.../test/templatesuite/templates/escapes.ftl | 18 +++++
.../test/templatesuite/templates/exception.ftl | 18 +++++
.../test/templatesuite/templates/exception2.ftl | 18 +++++
.../test/templatesuite/templates/exception3.ftl | 18 +++++
.../templates/existence-operators.ftl | 18 +++++
.../test/templatesuite/templates/exthash.ftl | 18 +++++
.../test/templatesuite/templates/hashconcat.ftl | 18 +++++
.../templatesuite/templates/hashliteral.ftl | 18 +++++
.../test/templatesuite/templates/helloworld.ftl | 18 +++++
.../templates/identifier-escaping.ftl | 18 +++++
.../templates/identifier-non-ascii.ftl | 18 +++++
.../test/templatesuite/templates/if.ftl | 18 +++++
.../test/templatesuite/templates/import.ftl | 18 +++++
.../test/templatesuite/templates/import_lib.ftl | 18 +++++
.../test/templatesuite/templates/include.ftl | 18 +++++
.../templates/include2-included-encoding.ftl | 18 +++++
.../templates/include2-included.ftl | 18 +++++
.../test/templatesuite/templates/include2.ftl | 18 +++++
.../test/templatesuite/templates/included.ftl | 18 +++++
.../test/templatesuite/templates/interpret.ftl | 18 +++++
.../test/templatesuite/templates/iterators.ftl | 18 +++++
.../templatesuite/templates/lastcharacter.ftl | 18 +++++
.../test/templatesuite/templates/list-bis.ftl | 18 +++++
.../test/templatesuite/templates/list.ftl | 18 +++++
.../test/templatesuite/templates/list2.ftl | 18 +++++
.../test/templatesuite/templates/list3.ftl | 18 +++++
.../templatesuite/templates/listliteral.ftl | 18 +++++
.../templatesuite/templates/localization.ftl | 18 +++++
.../templatesuite/templates/localization_en.ftl | 18 +++++
.../templates/localization_en_AU.ftl | 18 +++++
.../test/templatesuite/templates/logging.ftl | 18 +++++
.../templatesuite/templates/loopvariable.ftl | 18 +++++
.../templatesuite/templates/macros-return.ftl | 18 +++++
.../test/templatesuite/templates/macros.ftl | 18 +++++
.../test/templatesuite/templates/macros2.ftl | 18 +++++
.../templatesuite/templates/multimodels.ftl | 18 +++++
.../test/templatesuite/templates/nested.ftl | 18 +++++
.../templatesuite/templates/nestedinclude.ftl | 18 +++++
.../templates/new-allowsnothing.ftl | 18 +++++
.../templates/new-defaultresolver.ftl | 18 +++++
.../test/templatesuite/templates/new-optin.ftl | 18 +++++
.../test/templatesuite/templates/new-safer.ftl | 18 +++++
.../templates/new-unrestricted.ftl | 18 +++++
.../test/templatesuite/templates/newlines1.ftl | 18 +++++
.../test/templatesuite/templates/newlines2.ftl | 18 +++++
.../templates/non-strict-syntax.ftl | 18 +++++
.../test/templatesuite/templates/noparse.ftl | 18 +++++
.../templatesuite/templates/number-format.ftl | 18 +++++
.../templatesuite/templates/number-literal.ftl | 18 +++++
.../templates/number-math-builtins.ftl | 18 +++++
.../templatesuite/templates/number-to-date.ftl | 18 +++++
.../templatesuite/templates/numerical-cast.ftl | 18 +++++
.../templates/output-encoding1.ftl | 18 +++++
.../templates/output-encoding2.ftl | 18 +++++
.../templates/output-encoding3.ftl | 18 +++++
.../overloaded-methods-2-bwici-2.3.20.ftl | 18 +++++
.../overloaded-methods-2-bwici-2.3.21.ftl | 18 +++++
.../templates/overloaded-methods-2-common.ftl | 18 +++++
.../overloaded-methods-2-desc-bwici-2.3.20.ftl | 18 +++++
.../overloaded-methods-2-inc-bwici-2.3.20.ftl | 18 +++++
.../templates/overloaded-methods-23bc.ftl | 18 +++++
.../test/templatesuite/templates/precedence.ftl | 18 +++++
.../templatesuite/templates/range-common.ftl | 18 +++++
.../templates/range-ici-2.3.20.ftl | 18 +++++
.../templates/range-ici-2.3.21.ftl | 18 +++++
.../test/templatesuite/templates/recover.ftl | 18 +++++
.../test/templatesuite/templates/root.ftl | 18 +++++
.../templates/sequence-builtins.ftl | 18 +++++
.../test/templatesuite/templates/setting.ftl | 18 +++++
.../templates/simplehash-char-key.ftl | 18 +++++
.../templatesuite/templates/specialvars.ftl | 18 +++++
.../templatesuite/templates/strictinheader.ftl | 18 +++++
.../templates/strictinheader_inc1.ftl | 18 +++++
.../templates/strictinheader_inc2.ftl | 18 +++++
.../templates/string-builtin-coercion.ftl | 18 +++++
.../templates/string-builtins-ici-2.3.19.ftl | 18 +++++
.../templates/string-builtins-ici-2.3.20.ftl | 18 +++++
.../string-builtins-regexps-matches.ftl | 18 +++++
.../templates/string-builtins-regexps.ftl | 18 +++++
.../templates/string-builtins1.ftl | 18 +++++
.../templates/string-builtins2.ftl | 18 +++++
.../templates/string-builtins3.ftl | 18 +++++
.../templatesuite/templates/stringbimethods.ftl | 18 +++++
.../templatesuite/templates/stringliteral.ftl | 18 +++++
.../templates/subdir/include-subdir.ftl | 18 +++++
.../templates/subdir/include-subdir2.ftl | 18 +++++
.../templates/subdir/new-optin-2.ftl | 18 +++++
.../templates/subdir/new-optin.ftl | 18 +++++
.../templates/subdir/subsub/new-optin.ftl | 18 +++++
.../templatesuite/templates/switch-builtin.ftl | 18 +++++
.../test/templatesuite/templates/switch.ftl | 18 +++++
.../templatesuite/templates/then-builtin.ftl | 18 +++++
.../test/templatesuite/templates/transforms.ftl | 18 +++++
.../templatesuite/templates/type-builtins.ftl | 18 +++++
.../test/templatesuite/templates/undefined.ftl | 18 +++++
.../test/templatesuite/templates/url.ftl | 18 +++++
.../test/templatesuite/templates/var-layers.ftl | 18 +++++
.../test/templatesuite/templates/varargs.ftl | 18 +++++
.../test/templatesuite/templates/variables.ftl | 18 +++++
.../templatesuite/templates/varlayers_lib.ftl | 18 +++++
.../templatesuite/templates/whitespace-trim.ftl | 18 +++++
.../templates/wsstripinheader_inc.ftl | 18 +++++
.../templates/wstrip-in-header.ftl | 18 +++++
.../templatesuite/templates/xml-fragment.ftl | 18 +++++
.../templates/xml-ns_prefix-scope-lib.ftl | 18 +++++
.../templates/xml-ns_prefix-scope-main.ftl | 18 +++++
.../test/templatesuite/templates/xml.ftl | 18 +++++
.../test/templatesuite/templates/xmlns1.ftl | 18 +++++
.../test/templatesuite/templates/xmlns3.ftl | 18 +++++
.../test/templatesuite/templates/xmlns4.ftl | 18 +++++
.../test/templatesuite/templates/xmlns5.ftl | 18 +++++
205 files changed, 3752 insertions(+), 18 deletions(-)
----------------------------------------------------------------------
[5/7] incubator-freemarker git commit: Added copyright headers to
ftl/ftlx/ftlh files (used in tests an examples).
Posted by dd...@apache.org.
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>
[4/7] incubator-freemarker git commit: Added copyright headers to
ftl/ftlx/ftlh files (used in tests an examples).
Posted by dd...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/list.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/list.ftl b/src/test/resources/freemarker/test/templatesuite/templates/list.ftl
index a5c753b..23892cb 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/list.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/list.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.
+-->
<@testList ["aardvark", "bear", "cat", "dog"] />
<@testList ["aardvark"] />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/list2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/list2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/list2.ftl
index 1bfb51f..6c10ee2 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/list2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/list2.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.
+-->
<@testList ["aardvark", "bear", "cat", "dog"] />
<@testList ["aardvark"] />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/list3.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/list3.ftl b/src/test/resources/freemarker/test/templatesuite/templates/list3.ftl
index b23d9c3..3abf14d 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/list3.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/list3.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 listables.list as i>
[<#list listables.list as j>(${i}@${i_index}, ${j}@${j_index})<#sep>, </#sep></#list>]<#sep>,</#sep>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/listliteral.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/listliteral.ftl b/src/test/resources/freemarker/test/templatesuite/templates/listliteral.ftl
index 875fe7f..b7c738b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/listliteral.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/listliteral.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 Literal Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/localization.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/localization.ftl b/src/test/resources/freemarker/test/templatesuite/templates/localization.ftl
index e2fc481..9a822ea 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/localization.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/localization.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: Localization Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/localization_en.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/localization_en.ftl b/src/test/resources/freemarker/test/templatesuite/templates/localization_en.ftl
index 241a31c..c29d258 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/localization_en.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/localization_en.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: Localization Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/localization_en_AU.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/localization_en_AU.ftl b/src/test/resources/freemarker/test/templatesuite/templates/localization_en_AU.ftl
index 1459f0b..a8c7faf 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/localization_en_AU.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/localization_en_AU.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: Localization Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/logging.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/logging.ftl b/src/test/resources/freemarker/test/templatesuite/templates/logging.ftl
index b01e6a4..ed7d3bc 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/logging.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/logging.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: Logging Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/loopvariable.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/loopvariable.ftl b/src/test/resources/freemarker/test/templatesuite/templates/loopvariable.ftl
index 08774e1..c8a86cd 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/loopvariable.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/loopvariable.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">
---
<#macro myLoop from to>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/macros-return.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/macros-return.ftl b/src/test/resources/freemarker/test/templatesuite/templates/macros-return.ftl
index d71bbd6..78d43e7 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/macros-return.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/macros-return.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>m{<#return>}</#macro>
<@m/>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/macros.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/macros.ftl b/src/test/resources/freemarker/test/templatesuite/templates/macros.ftl
index ea458cb..e305985 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/macros.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/macros.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: Function Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/macros2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/macros2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/macros2.ftl
index 9eb6e4a..70a9340 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/macros2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/macros2.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 m1 a b=a>
${a} ${b}
</#macro>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/multimodels.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/multimodels.ftl b/src/test/resources/freemarker/test/templatesuite/templates/multimodels.ftl
index 6bee1af..20dc47f 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/multimodels.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/multimodels.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: Test of Multiple Model implementations</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/nested.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/nested.ftl b/src/test/resources/freemarker/test/templatesuite/templates/nested.ftl
index d64531b..ecd28ba 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/nested.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/nested.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 repeat count>
<#local y = "test">
<#foreach x in 1..count>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/nestedinclude.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/nestedinclude.ftl b/src/test/resources/freemarker/test/templatesuite/templates/nestedinclude.ftl
index 8738d4d..5bffb50 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/nestedinclude.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/nestedinclude.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 nestedMessage = "I'm here, mon!">
${.main.bar}
<#-- ${.root.message} -->
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/new-allowsnothing.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/new-allowsnothing.ftl b/src/test/resources/freemarker/test/templatesuite/templates/new-allowsnothing.ftl
index 3676440..355d747 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/new-allowsnothing.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/new-allowsnothing.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.
+-->
<#attempt>
${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
<#recover>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/new-defaultresolver.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/new-defaultresolver.ftl b/src/test/resources/freemarker/test/templatesuite/templates/new-defaultresolver.ftl
index 4fbd3fd..333db6b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/new-defaultresolver.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/new-defaultresolver.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.test.templatesuite.models.NewTestModel"?new("works")}
<#attempt>
${"freemarker.template.utility.ObjectConstructor"?new()("java.lang.String", "works")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/new-optin.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/new-optin.ftl b/src/test/resources/freemarker/test/templatesuite/templates/new-optin.ftl
index 324fc5c..a1d583c 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/new-optin.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/new-optin.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.test.templatesuite.models.NewTestModel"?new("works")}
<#attempt>
${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/new-safer.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/new-safer.ftl b/src/test/resources/freemarker/test/templatesuite/templates/new-safer.ftl
index 4fbd3fd..333db6b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/new-safer.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/new-safer.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.test.templatesuite.models.NewTestModel"?new("works")}
<#attempt>
${"freemarker.template.utility.ObjectConstructor"?new()("java.lang.String", "works")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/new-unrestricted.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/new-unrestricted.ftl b/src/test/resources/freemarker/test/templatesuite/templates/new-unrestricted.ftl
index e0812de..ed9fd08 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/new-unrestricted.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/new-unrestricted.ftl
@@ -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.
+-->
${"freemarker.test.templatesuite.models.NewTestModel"?new("works")}
${"freemarker.template.utility.ObjectConstructor"?new()("java.lang.String", "works")}
\ 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/newlines1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/newlines1.ftl b/src/test/resources/freemarker/test/templatesuite/templates/newlines1.ftl
index 581cf8a..f5eae6b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/newlines1.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/newlines1.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: Newlines Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/newlines2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/newlines2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/newlines2.ftl
index 7c706c6..1d12d82 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/newlines2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/newlines2.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 message="Hello, world!\n">
<#assign normalizeNewlines = "freemarker.template.utility.NormalizeNewlines"?new()>
<#transform normalizeNewlines>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/non-strict-syntax.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/non-strict-syntax.ftl b/src/test/resources/freemarker/test/templatesuite/templates/non-strict-syntax.ftl
index eb0734f..0ff029b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/non-strict-syntax.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/non-strict-syntax.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: Identifier Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/noparse.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/noparse.ftl b/src/test/resources/freemarker/test/templatesuite/templates/noparse.ftl
index e6d8168..ea36801 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/noparse.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/noparse.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: NoParse Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/number-format.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/number-format.ftl b/src/test/resources/freemarker/test/templatesuite/templates/number-format.ftl
index 753409d..ffdf8fb 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/number-format.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/number-format.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 number_format = ",##0.##">
<#setting locale = "fr_FR">
${1}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/number-literal.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/number-literal.ftl b/src/test/resources/freemarker/test/templatesuite/templates/number-literal.ftl
index 7efe6fb..29780e5 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/number-literal.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/number-literal.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: Number Literal Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/number-math-builtins.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/number-math-builtins.ftl b/src/test/resources/freemarker/test/templatesuite/templates/number-math-builtins.ftl
index 8bab72e..cced870 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/number-math-builtins.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/number-math-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 actual=0?abs expected=0 />
<@assertEquals actual=3?abs expected=3 />
<@assertEquals actual=(-3)?abs expected=3 />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/number-to-date.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/number-to-date.ftl b/src/test/resources/freemarker/test/templatesuite/templates/number-to-date.ftl
index fed1ad9..c0bfd05 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/number-to-date.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/number-to-date.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.
+-->
${1305575275540?number_to_datetime?iso_utc_ms} == 2011-05-16T19:47:55.54Z
${1305575275540?number_to_date?iso_utc} == 2011-05-16
${1305575275540?number_to_time?iso_utc_ms} == 19:47:55.54Z
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/numerical-cast.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/numerical-cast.ftl b/src/test/resources/freemarker/test/templatesuite/templates/numerical-cast.ftl
index cbeee66..0b90ddc 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/numerical-cast.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/numerical-cast.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.
+-->
<#setting locale="en_US">
<#setting number_format="0.#########">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/output-encoding1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/output-encoding1.ftl b/src/test/resources/freemarker/test/templatesuite/templates/output-encoding1.ftl
index 2a85a2e..030e3bd 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/output-encoding1.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/output-encoding1.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.
+-->
Output charset: ${.output_encoding?default("undefined")}
URL escaping charset: ${.url_escaping_charset?default("undefined")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/output-encoding2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/output-encoding2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/output-encoding2.ftl
index 143b6a4..a85e77b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/output-encoding2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/output-encoding2.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.
+-->
Output charset: ${.output_encoding?default("undefined")}
URL escaping charset: ${.url_escaping_charset?default("undefined")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/output-encoding3.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/output-encoding3.ftl b/src/test/resources/freemarker/test/templatesuite/templates/output-encoding3.ftl
index 143b6a4..a85e77b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/output-encoding3.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/output-encoding3.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.
+-->
Output charset: ${.output_encoding?default("undefined")}
URL escaping charset: ${.url_escaping_charset?default("undefined")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.20.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.20.ftl b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.20.ftl
index a90138a..b65be17 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.20.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.20.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.
+-->
<#-- The parts of the IcI 2.3.20 tests that give the same result regardless of method introspection order -->
<#-- Note that the point of 2.3.20 tests is to check if bugs fixed in 2.3.21 are still emulated in pre-2.3.21 mode -->
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.21.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.21.ftl b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.21.ftl
index 6f124dc..43684a8 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-2.3.21.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-bwici-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.
+-->
<#-- Since with IcI 2.3.21+ the results must not depend on method introspection order, there's only once template -->
<#include "overloaded-methods-2-common.ftl">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-common.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-common.ftl b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-common.ftl
index 168a52b..2ce13ef 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-common.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-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.
+-->
<@assertEquals actual=obj.mStringArrayVsListPreference(obj.javaStringList) expected="mStringArrayVsListPreference(List [a, b])" />
<@assertEquals actual=obj.mStringArrayVsListPreference(obj.javaStringArray) expected=dowPre22?string("mStringArrayVsListPreference(List [a, b])", "mStringArrayVsListPreference(String[] [a, b])") />
<#if dow>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-desc-bwici-2.3.20.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-desc-bwici-2.3.20.ftl b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-desc-bwici-2.3.20.ftl
index ec44f20..9582dfe 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-desc-bwici-2.3.20.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-desc-bwici-2.3.20.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.
+-->
<#-- Note that the point of 2.3.20 tests is to check if bugs fixed in 2.3.21 are still emulated in pre-2.3.21 mode -->
<@assertFails message="no compatible overloaded">${obj.mVarargs('a', obj.getNnS('b'), obj.getNnS('c'))}</@>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-inc-bwici-2.3.20.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-inc-bwici-2.3.20.ftl b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-inc-bwici-2.3.20.ftl
index 3120871..6c1e6b9 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-inc-bwici-2.3.20.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-2-inc-bwici-2.3.20.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.
+-->
<#-- Note that the point of 2.3.20 tests is to check if bugs fixed in 2.3.21 are still emulated in pre-2.3.21 mode -->
<@assertEquals actual=obj.mVarargs('a', obj.getNnS('b'), obj.getNnS('c')) expected='mVarargs(String... a1 = abc)' />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-23bc.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-23bc.ftl b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-23bc.ftl
index cdcd794..d6548d4 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-23bc.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/overloaded-methods-23bc.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 m = {"a": 1, "b": 2}]
[#assign ls = [1, 2]]
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/precedence.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/precedence.ftl b/src/test/resources/freemarker/test/templatesuite/templates/precedence.ftl
index 210a890..e37a519 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/precedence.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/precedence.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: Operator Precedence Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/range-common.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/range-common.ftl b/src/test/resources/freemarker/test/templatesuite/templates/range-common.ftl
index 2731cc5..618e216 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/range-common.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/range-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.
+-->
<#-- A version of "?join" that fails at null-s in the sequence: -->
<#function join seq sep=''>
<#local r = "">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.20.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.20.ftl b/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.20.ftl
index a9663be..1dbd5b7 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.20.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.20.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 'range-common.ftl'>
<#-- Legacy quirk: right-unbounded ranges are apparently empty: -->
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.21.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.21.ftl b/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.21.ftl
index b24020b..33f7c7f 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/range-ici-2.3.21.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/range-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 'range-common.ftl'>
<@assertEquals actual=(4..)?size expected=2147483647 />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/recover.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/recover.ftl b/src/test/resources/freemarker/test/templatesuite/templates/recover.ftl
index 2b19493..9595ad5 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/recover.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/recover.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.
+-->
<#attempt>
<#assign sequence = ["Hello, World"]>
${sequence[0]}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/root.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/root.ftl b/src/test/resources/freemarker/test/templatesuite/templates/root.ftl
index cc7669d..8deb77c 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/root.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/root.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: Root Lookup Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/sequence-builtins.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/sequence-builtins.ftl b/src/test/resources/freemarker/test/templatesuite/templates/sequence-builtins.ftl
index 29039d1..c431048 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/sequence-builtins.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/sequence-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.
+-->
<@noOutput>
<#setting locale="en_US">
<#setting number_format="0.#########">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/setting.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/setting.ftl b/src/test/resources/freemarker/test/templatesuite/templates/setting.ftl
index 731def9..1def44b 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/setting.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/setting.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='de_DE'>
<@assertEquals expected='de_DE' actual=.locale />
<@assertEquals expected='de' actual=.lang />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/simplehash-char-key.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/simplehash-char-key.ftl b/src/test/resources/freemarker/test/templatesuite/templates/simplehash-char-key.ftl
index c8b65ce..8ecd0fe 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/simplehash-char-key.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/simplehash-char-key.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="string" actual=mStringC.c />
<@assertEquals expected=1 actual=mStringC?keys?size />
<@assertEquals expected="null" actual=mStringC.d!'null' />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/specialvars.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/specialvars.ftl b/src/test/resources/freemarker/test/templatesuite/templates/specialvars.ftl
index 1358ff3..fe45a0c 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/specialvars.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/specialvars.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.
+-->
<#-- Mostly just checks if the expressions doesn't fail -->
<#assign works = .data_model>
<#attempt>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/strictinheader.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/strictinheader.ftl b/src/test/resources/freemarker/test/templatesuite/templates/strictinheader.ftl
index bea24b0..bf4678a 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/strictinheader.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/strictinheader.ftl
@@ -1,4 +1,22 @@
<#ftl strict_syntax="yes">
+<#--
+ 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.
+-->
1
<include "test1.ftl">
<#include "strictinheader_inc1.ftl">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc1.ftl b/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc1.ftl
index c0bdf64..0c2111c 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc1.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc1.ftl
@@ -1,3 +1,21 @@
<#ftl strict_syntax="no">
+<#--
+ 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 = 3>
${x}
\ 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/strictinheader_inc2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc2.ftl
index 556a03b..1720945 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/strictinheader_inc2.ftl
@@ -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.
+-->
<global x = 4>
${x}
\ 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/string-builtin-coercion.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtin-coercion.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtin-coercion.ftl
index 23e404b..de836c7 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtin-coercion.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtin-coercion.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.
+-->
Was broken 2.3.19:
<#setting number_format="0.#">
<@assert test=1232?contains('2') />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.19.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.19.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.19.ftl
index 94123c7..033920d 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.19.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.19.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.
+-->
<#-- Same as before... just checking against one-off bugs for 2.3.20 -->
<@assertEquals actual="'"?html expected="'" />
<@assertEquals actual="'"?xhtml expected="'" />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.20.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.20.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.20.ftl
index 6739f25..62cbb68 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.20.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-ici-2.3.20.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 actual="'"?html expected="'" />
<@assertEquals actual="'"?xhtml expected="'" />
<@assertEquals actual="'"?xml expected="'" />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps-matches.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps-matches.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps-matches.ftl
index 7cafac0..f5d346a 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps-matches.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps-matches.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 input>
L16
L27
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps.ftl
index 25c47c0..c545222 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins-regexps.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.
+-->
${"test"?matches('test')?string} == true
${"test"?matches('test', '')?string} == true
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins1.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins1.ftl
index 23232b8..0dd3f17 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins1.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins1.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 string built-in tests
<#assign x = r' dieBugsDie! * vazzZE 123456 --cdc-- --<<--@ x ${"kigyo"?upper_case} '>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins2.ftl
index 583dc87..7ac0339 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins2.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 s = "abbcdbb">
${s?index_of("bb")} = 1
[2/7] incubator-freemarker git commit: AST tests and
TemplateTestSuite tests remove the copyright comment from the template files
on the fly.
Posted by dd...@apache.org.
AST tests and TemplateTestSuite tests remove the copyright comment from the template files on the fly.
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/9ee209e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/9ee209e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/9ee209e9
Branch: refs/heads/2.3
Commit: 9ee209e9354d78193cc2c2c5b0a0e8135c5f4ee3
Parents: 9d255d8
Author: ddekany <dd...@apache.org>
Authored: Wed Dec 30 23:11:23 2015 +0100
Committer: ddekany <dd...@apache.org>
Committed: Thu Dec 31 01:11:54 2015 +0100
----------------------------------------------------------------------
src/test/java/freemarker/core/ASTTest.java | 4 +-
.../CopyrightCommentRemoverTemplateLoader.java | 63 +++++++++++++++
src/test/java/freemarker/test/TestUtil.java | 81 ++++++++++++++++++++
.../test/templatesuite/TemplateTestCase.java | 8 +-
4 files changed, 152 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9ee209e9/src/test/java/freemarker/core/ASTTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/core/ASTTest.java b/src/test/java/freemarker/core/ASTTest.java
index 8edb85e..7124c64 100644
--- a/src/test/java/freemarker/core/ASTTest.java
+++ b/src/test/java/freemarker/core/ASTTest.java
@@ -24,6 +24,7 @@ import java.io.IOException;
import freemarker.core.ASTPrinter.Options;
import freemarker.template.utility.StringUtil;
+import freemarker.test.TestUtil;
import freemarker.test.utility.FileTestCase;
public class ASTTest extends FileTestCase {
@@ -86,7 +87,8 @@ public class ASTTest extends FileTestCase {
final String templateName = testName + ".ftl";
assertExpectedFileEqualsString(
testName + ".ast",
- ASTPrinter.getASTAsString(templateName, normalizeLineBreaks(templateName), ops));
+ ASTPrinter.getASTAsString(templateName,
+ TestUtil.removeCopyrightCommentFromFTL(normalizeLineBreaks(templateName)), ops));
}
private String normalizeLineBreaks(final String templateName) throws FileNotFoundException, IOException {
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9ee209e9/src/test/java/freemarker/test/CopyrightCommentRemoverTemplateLoader.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/test/CopyrightCommentRemoverTemplateLoader.java b/src/test/java/freemarker/test/CopyrightCommentRemoverTemplateLoader.java
new file mode 100644
index 0000000..5d336a4
--- /dev/null
+++ b/src/test/java/freemarker/test/CopyrightCommentRemoverTemplateLoader.java
@@ -0,0 +1,63 @@
+/*
+ * 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.
+ */
+package freemarker.test;
+
+import java.io.IOException;
+import java.io.Reader;
+import java.io.StringReader;
+
+import org.apache.commons.io.IOUtils;
+
+import freemarker.cache.TemplateLoader;
+
+public class CopyrightCommentRemoverTemplateLoader implements TemplateLoader {
+
+ private final TemplateLoader innerTemplateLoader;
+
+ public CopyrightCommentRemoverTemplateLoader(TemplateLoader innerTemplateLoader) {
+ this.innerTemplateLoader = innerTemplateLoader;
+ }
+
+ @Override
+ public Object findTemplateSource(String name) throws IOException {
+ return innerTemplateLoader.findTemplateSource(name);
+ }
+
+ @Override
+ public long getLastModified(Object templateSource) {
+ return innerTemplateLoader.getLastModified(templateSource);
+ }
+
+ @Override
+ public Reader getReader(Object templateSource, String encoding) throws IOException {
+ Reader reader = innerTemplateLoader.getReader(templateSource, encoding);
+ try {
+ String content = IOUtils.toString(reader);
+ return new StringReader(TestUtil.removeCopyrightCommentFromFTL(content));
+ } finally {
+ reader.close();
+ }
+ }
+
+ @Override
+ public void closeTemplateSource(Object templateSource) throws IOException {
+ innerTemplateLoader.closeTemplateSource(templateSource);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9ee209e9/src/test/java/freemarker/test/TestUtil.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/test/TestUtil.java b/src/test/java/freemarker/test/TestUtil.java
new file mode 100644
index 0000000..a8e9244
--- /dev/null
+++ b/src/test/java/freemarker/test/TestUtil.java
@@ -0,0 +1,81 @@
+/*
+ * 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.
+ */
+package freemarker.test;
+
+public final class TestUtil {
+
+ private TestUtil() {
+ // Not meant to be instantiated
+ }
+
+ public static String removeCopyrightCommentFromFTL(String ftl) {
+ if (ftl.contains("<#ftl ns_prefixes = {\"D\" : \"http://example.com/eBook\"}>")) {
+ System.out.println();
+ }
+
+ int copyrightIdx = ftl.indexOf("copyright");
+ if (copyrightIdx == -1) {
+ copyrightIdx = ftl.indexOf("Copyright");
+ }
+ if (copyrightIdx == -1) {
+ return ftl;
+ }
+
+ final int commentFirstIdx;
+ final boolean squareBracketTagSyntax;
+ {
+ String ftlBeforeCopyright = ftl.substring(0, copyrightIdx);
+ int abCommentStart = ftlBeforeCopyright.lastIndexOf("<#--");
+ int sbCommentStart = ftlBeforeCopyright.lastIndexOf("[#--");
+ squareBracketTagSyntax = sbCommentStart > abCommentStart;
+ commentFirstIdx = squareBracketTagSyntax ? sbCommentStart : abCommentStart;
+ if (commentFirstIdx == -1) {
+ throw new AssertionError("Can't find copyright comment start");
+ }
+ }
+
+ final int commentLastIdx;
+ {
+ int commentEndStart = ftl.indexOf(squareBracketTagSyntax ? "--]" : "-->", copyrightIdx);
+ if (commentEndStart == -1) {
+ throw new AssertionError("Can't find copyright comment end");
+ }
+ commentLastIdx = commentEndStart + 2;
+ }
+
+ final int afterCommentNLChars;
+ if (commentLastIdx + 1 < ftl.length()) {
+ char afterCommentChar = ftl.charAt(commentLastIdx + 1);
+ if (afterCommentChar == '\n' || afterCommentChar == '\r') {
+ if (afterCommentChar == '\r' && commentLastIdx + 2 < ftl.length() && ftl.charAt(commentLastIdx + 2) == '\n') {
+ afterCommentNLChars = 2;
+ } else {
+ afterCommentNLChars = 1;
+ }
+ } else {
+ afterCommentNLChars = 0;
+ }
+ } else {
+ afterCommentNLChars = 0;
+ }
+
+ return ftl.substring(0, commentFirstIdx) + ftl.substring(commentLastIdx + afterCommentNLChars + 1);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/9ee209e9/src/test/java/freemarker/test/templatesuite/TemplateTestCase.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/test/templatesuite/TemplateTestCase.java b/src/test/java/freemarker/test/templatesuite/TemplateTestCase.java
index 989e6e1..b44cf61 100644
--- a/src/test/java/freemarker/test/templatesuite/TemplateTestCase.java
+++ b/src/test/java/freemarker/test/templatesuite/TemplateTestCase.java
@@ -42,8 +42,6 @@ import java.util.TreeSet;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import junit.framework.AssertionFailedError;
-
import org.junit.Ignore;
import org.xml.sax.InputSource;
@@ -51,6 +49,7 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
+import freemarker.cache.FileTemplateLoader;
import freemarker.core.ASTPrinter;
import freemarker.ext.beans.BeansWrapper;
import freemarker.ext.beans.BooleanModel;
@@ -76,6 +75,7 @@ import freemarker.template._TemplateAPI;
import freemarker.template.utility.NullArgumentException;
import freemarker.template.utility.NullWriter;
import freemarker.template.utility.StringUtil;
+import freemarker.test.CopyrightCommentRemoverTemplateLoader;
import freemarker.test.templatesuite.models.BooleanAndStringTemplateModel;
import freemarker.test.templatesuite.models.BooleanHash1;
import freemarker.test.templatesuite.models.BooleanHash2;
@@ -93,6 +93,7 @@ import freemarker.test.utility.AssertEqualsDirective;
import freemarker.test.utility.AssertFailsDirective;
import freemarker.test.utility.FileTestCase;
import freemarker.test.utility.NoOutputDirective;
+import junit.framework.AssertionFailedError;
/**
* Instances of this are created and called by {@link TemplateTestSuite}. (It's on "Ignore" so that Eclipse doesn't try
@@ -177,7 +178,8 @@ public class TemplateTestCase extends FileTestCase {
@Override
@SuppressWarnings("boxing")
public void setUp() throws Exception {
- conf.setDirectoryForTemplateLoading(new File(getTestClassDirectory(), "templates"));
+ conf.setTemplateLoader(new CopyrightCommentRemoverTemplateLoader(
+ new FileTemplateLoader(new File(getTestClassDirectory(), "templates"))));
dataModel.put(ASSERT_VAR_NAME, AssertDirective.INSTANCE);
dataModel.put(ASSERT_EQUALS_VAR_NAME, AssertEqualsDirective.INSTANCE);
[3/7] incubator-freemarker git commit: Added copyright headers to
ftl/ftlx/ftlh files (used in tests an examples).
Posted by dd...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/string-builtins3.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins3.ftl b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins3.ftl
index a716d4b..f617236 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/string-builtins3.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/string-builtins3.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='foo' actual='foo'?keep_before('x') />
<@assertEquals expected='f' actual='foo'?keep_before('o') />
<@assertEquals expected='' actual='foo'?keep_before('f') />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/stringbimethods.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/stringbimethods.ftl b/src/test/resources/freemarker/test/templatesuite/templates/stringbimethods.ftl
index 1fdf324..f757129 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/stringbimethods.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/stringbimethods.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">
<#assign x = 3>
${x?string["0.00"]}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/stringliteral.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/stringliteral.ftl b/src/test/resources/freemarker/test/templatesuite/templates/stringliteral.ftl
index 153832a..d4e7a39 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/stringliteral.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/stringliteral.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: String literal test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir.ftl b/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir.ftl
index 8981b68..1db5722 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir.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>This is include-subdir.ftl</p>
<p>Testing including from same directory</p>
<#include "include-subdir2.ftl">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir2.ftl
index af5b12c..a4e7744 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/subdir/include-subdir2.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.
+-->
<p>This is include-subdir2.ftl</p>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin-2.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin-2.ftl b/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin-2.ftl
index 818039b..68cdfd8 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin-2.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin-2.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.test.templatesuite.models.NewTestModel"?new("works")}
<#attempt>
${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin.ftl b/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin.ftl
index 3367f71..8818d09 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/subdir/new-optin.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.test.templatesuite.models.NewTestModel"?new("works")}
<#attempt>
${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/subdir/subsub/new-optin.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/subdir/subsub/new-optin.ftl b/src/test/resources/freemarker/test/templatesuite/templates/subdir/subsub/new-optin.ftl
index 818039b..68cdfd8 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/subdir/subsub/new-optin.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/subdir/subsub/new-optin.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.test.templatesuite.models.NewTestModel"?new("works")}
<#attempt>
${"freemarker.test.templatesuite.models.NewTestModel2"?new("works")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/switch-builtin.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/switch-builtin.ftl b/src/test/resources/freemarker/test/templatesuite/templates/switch-builtin.ftl
index ccf1f9b..ed7409d 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/switch-builtin.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/switch-builtin.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="A" actual="a"?switch("a", "A") />
<@assertFails message="didn't match">${"b"?switch("a", "A")}</@>
<@assertEquals expected="D" actual="b"?switch("a", "A", "D") />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/switch.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/switch.ftl b/src/test/resources/freemarker/test/templatesuite/templates/switch.ftl
index 624d10e..140dff3 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/switch.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/switch.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: Switch-Case Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/then-builtin.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/then-builtin.ftl b/src/test/resources/freemarker/test/templatesuite/templates/then-builtin.ftl
index e30db70..f2cdb65 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/then-builtin.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/then-builtin.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 f1InvocationCnt = 0>
<#assign f2InvocationCnt = 0>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/transforms.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/transforms.ftl b/src/test/resources/freemarker/test/templatesuite/templates/transforms.ftl
index 17975bb..b171938 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/transforms.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/transforms.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.
+-->
<#assign htmlEscape = "freemarker.template.utility.HtmlEscape"?new(),
jython = "freemarker.template.utility.JythonRuntime"?new(),
utility = "freemarker.test.templatesuite.models.TransformHashWrapper"?new()>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/type-builtins.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/type-builtins.ftl b/src/test/resources/freemarker/test/templatesuite/templates/type-builtins.ftl
index 22a28c6..911cfb7 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/type-builtins.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/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 boolean_format="1,0">
StNuBoMeTaMaHaHxSeCoCxEnInDiNo
<#foreach x in [
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/undefined.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/undefined.ftl b/src/test/resources/freemarker/test/templatesuite/templates/undefined.ftl
index 13f2e0f..5862d6f 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/undefined.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/undefined.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.
+-->
${undefined_variable}
\ 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/url.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/url.ftl b/src/test/resources/freemarker/test/templatesuite/templates/url.ftl
index 7ea2aa4..bf55a11 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/url.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/url.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 url_escaping_charset="utf-8">
<#assign s = 'a/báb?c/x;y=1' />
<@assertEquals expected='a%2Fb%E1b%3Fc%2Fx%3By%3D1' actual=s?url('ISO-8859-1') />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/var-layers.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/var-layers.ftl b/src/test/resources/freemarker/test/templatesuite/templates/var-layers.ftl
index c523274..1ec9b95 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/var-layers.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/var-layers.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 "varlayers_lib.ftl" as lib>
<@foo 1/>
${x} = ${.data_model.x} = ${.globals.x}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/varargs.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/varargs.ftl b/src/test/resources/freemarker/test/templatesuite/templates/varargs.ftl
index 14b0210..ae86134 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/varargs.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/varargs.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 number_format="#">
${m.bar()} == 0
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/variables.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/variables.ftl b/src/test/resources/freemarker/test/templatesuite/templates/variables.ftl
index 0b7c8a2..ebee898 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/variables.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/variables.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: Variable Test</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/varlayers_lib.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/varlayers_lib.ftl b/src/test/resources/freemarker/test/templatesuite/templates/varlayers_lib.ftl
index 235c8d2..e8b5c96 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/varlayers_lib.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/varlayers_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.
+-->
<#assign x1 = .data_model.x>
<#assign x2 = x>
<#assign z2 = z>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/whitespace-trim.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/whitespace-trim.ftl b/src/test/resources/freemarker/test/templatesuite/templates/whitespace-trim.ftl
index 3dfc7c2..460d080 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/whitespace-trim.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/whitespace-trim.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.
+-->
LB<#lt>
LB<#lt>
LB<#lt>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/wsstripinheader_inc.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/wsstripinheader_inc.ftl b/src/test/resources/freemarker/test/templatesuite/templates/wsstripinheader_inc.ftl
index 056c4d7..dce2f75 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/wsstripinheader_inc.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/wsstripinheader_inc.ftl
@@ -1,4 +1,22 @@
<#ftl strip_whitespace="yes">
+<#--
+ 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
<#assign x = 1>
b
\ 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/wstrip-in-header.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/wstrip-in-header.ftl b/src/test/resources/freemarker/test/templatesuite/templates/wstrip-in-header.ftl
index ec3c5f6..b14e087 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/wstrip-in-header.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/wstrip-in-header.ftl
@@ -2,6 +2,24 @@
<#ftl strip_whitespace="no">
+<#--
+ 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
<#assign x = 1>
b
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xml-fragment.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xml-fragment.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xml-fragment.ftl
index 6e59d3a..c315c33 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xml-fragment.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xml-fragment.ftl
@@ -1,4 +1,22 @@
<#ftl ns_prefixes = {"n" : "http://x"}>
+<#--
+ 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.
+-->
${node?node_name} = b
${node?root?node_name} = @document
${node['/']?node_name} = @document
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-lib.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-lib.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-lib.ftl
index fe5822a..fac3346 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-lib.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-lib.ftl
@@ -1,4 +1,22 @@
<#ftl ns_prefixes={ "n": "http://freemarker.org/test/bar", "D": "http://freemarker.org/test/namespace-test" }>
+<#--
+ 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 libResult>//n:e: ${doc['//n:e']}, ${doc.root['n:e']}</#global>
<#macro m>
//n:e: ${doc['//n:e']}, ${doc.root['n:e']}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-main.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-main.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-main.ftl
index a53853b..7af3550 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-main.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xml-ns_prefix-scope-main.ftl
@@ -3,6 +3,24 @@
"n": "http://freemarker.org/test/foo",
"bar": "http://freemarker.org/test/bar"
}>
+<#--
+ 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.
+-->
//e: ${doc['//D:e']}, ${doc.root.e}
//n:e: ${doc['//n:e']}, ${doc.root['n:e']}
//bar:e: ${doc['//bar:e']}, ${doc.root['bar:e']}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xml.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xml.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xml.ftl
index e97e394..aa1c841 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xml.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xml.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.
+-->
<#-- test processing instructions -->
<#global PIs = doc._content._ftype("p")>
<#foreach pi in PIs>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xmlns1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xmlns1.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xmlns1.ftl
index 4271e6d..e88e7de 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xmlns1.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xmlns1.ftl
@@ -1,4 +1,22 @@
<#ftl ns_prefixes = {"D" : "http://example.com/eBook"}>
+<#--
+ 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.
+-->
${doc.@@markup}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xmlns3.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xmlns3.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xmlns3.ftl
index 6858b56..9ad541f 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xmlns3.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xmlns3.ftl
@@ -1,4 +1,22 @@
<#ftl ns_prefixes = {"x" : "http://x", "y" : "http://y"}>
+<#--
+ 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.
+-->
<#recurse doc >
<#macro book>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xmlns4.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xmlns4.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xmlns4.ftl
index 31cfc4d..2a79936 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xmlns4.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xmlns4.ftl
@@ -1,4 +1,22 @@
<#ftl ns_prefixes = {"x" : "http://x", "y" : "http://y"}>
+<#--
+ 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.
+-->
<#recurse doc >
<#macro book>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/test/templatesuite/templates/xmlns5.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/test/templatesuite/templates/xmlns5.ftl b/src/test/resources/freemarker/test/templatesuite/templates/xmlns5.ftl
index d0682be..0f4eccf 100644
--- a/src/test/resources/freemarker/test/templatesuite/templates/xmlns5.ftl
+++ b/src/test/resources/freemarker/test/templatesuite/templates/xmlns5.ftl
@@ -1,4 +1,22 @@
<#ftl ns_prefixes = {"D": "http://y.com", "xx" : "http://x.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["N:root"]>
${r["N:t1"][0]?default('-')} = No NS
${r["xx:t2"][0]?default('-')} = x NS
[6/7] incubator-freemarker git commit: Added copyright headers to
ftl/ftlx/ftlh files (used in tests an examples).
Posted by dd...@apache.org.
Added copyright headers to ftl/ftlx/ftlh files (used in tests an examples).
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/559381f3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/559381f3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/559381f3
Branch: refs/heads/2.3
Commit: 559381f38766c077d95e4dc1c9be97cd1a216876
Parents: 9ee209e
Author: ddekany <dd...@apache.org>
Authored: Thu Dec 31 01:12:02 2015 +0100
Committer: ddekany <dd...@apache.org>
Committed: Thu Dec 31 01:12:02 2015 +0100
----------------------------------------------------------------------
src/examples/ant/src/template/faq2html.ftl | 18 ++++++++++++++++++
src/examples/struts-webapp/add.ftl | 18 ++++++++++++++++++
src/examples/struts-webapp/form.ftl | 18 ++++++++++++++++++
src/examples/struts-webapp/index.ftl | 18 ++++++++++++++++++
src/examples/struts-webapp/lib/common.ftl | 18 ++++++++++++++++++
src/examples/webapp1/WEB-INF/templates/test.ftl | 18 ++++++++++++++++++
src/examples/webapp2/WEB-INF/templates/add.ftl | 18 ++++++++++++++++++
src/examples/webapp2/WEB-INF/templates/form.ftl | 18 ++++++++++++++++++
src/examples/webapp2/WEB-INF/templates/index.ftl | 18 ++++++++++++++++++
.../webapp2/WEB-INF/templates/lib/common.ftl | 18 ++++++++++++++++++
.../misc/overloadedNumberRules/generator.ftl | 18 ++++++++++++++++++
src/test/resources/freemarker/cache/test.ftl | 18 ++++++++++++++++++
src/test/resources/freemarker/core/ast-1.ftl | 18 ++++++++++++++++++
.../freemarker/core/ast-assignments.ftl | 18 ++++++++++++++++++
.../resources/freemarker/core/ast-builtins.ftl | 18 ++++++++++++++++++
.../resources/freemarker/core/ast-locations.ftl | 18 ++++++++++++++++++
.../core/ast-mixedcontentsimplifications.ftl | 18 ++++++++++++++++++
.../core/ast-multipleignoredchildren.ftl | 18 ++++++++++++++++++
.../core/ast-nestedignoredchildren.ftl | 18 ++++++++++++++++++
src/test/resources/freemarker/core/ast-range.ftl | 18 ++++++++++++++++++
.../freemarker/core/ast-strlitinterpolation.ftl | 18 ++++++++++++++++++
.../freemarker/core/ast-whitesoacestripping.ftl | 18 ++++++++++++++++++
.../core/cano-assignments-canonical.ftl | 18 ++++++++++++++++++
.../freemarker/core/cano-assignments.ftl | 18 ++++++++++++++++++
.../freemarker/core/cano-builtins-canonical.ftl | 19 ++++++++++++++++++-
.../resources/freemarker/core/cano-builtins.ftl | 18 ++++++++++++++++++
.../core/cano-identifier-escaping-canonical.ftl | 19 ++++++++++++++++++-
.../freemarker/core/cano-identifier-escaping.ftl | 18 ++++++++++++++++++
.../freemarker/core/cano-macros-canonical.ftl | 18 ++++++++++++++++++
.../resources/freemarker/core/cano-macros.ftl | 18 ++++++++++++++++++
.../core/cano-strlitinterpolation-canonical.ftl | 19 ++++++++++++++++++-
.../freemarker/core/cano-strlitinterpolation.ftl | 18 ++++++++++++++++++
.../core/encodingOverride-ISO-8859-1.ftl | 18 ++++++++++++++++++
.../freemarker/core/encodingOverride-UTF-8.ftl | 18 ++++++++++++++++++
.../ext/jsp/templates/classpath-test.ftl | 18 ++++++++++++++++++
.../ext/jsp/webapps/basic/attributes.ftl | 18 ++++++++++++++++++
.../ext/jsp/webapps/basic/customELFunctions1.ftl | 18 ++++++++++++++++++
.../ext/jsp/webapps/basic/customTags1.ftl | 18 ++++++++++++++++++
.../jsp/webapps/basic/trivial-jstl-@Ignore.ftl | 18 ++++++++++++++++++
.../freemarker/ext/jsp/webapps/basic/trivial.ftl | 18 ++++++++++++++++++
.../webapps/config/WEB-INF/classes/sub/test.ftl | 18 ++++++++++++++++++
.../jsp/webapps/config/WEB-INF/classes/test.ftl | 18 ++++++++++++++++++
.../webapps/config/WEB-INF/templates/test.ftl | 18 ++++++++++++++++++
.../freemarker/ext/jsp/webapps/config/test.ftl | 18 ++++++++++++++++++
.../ext/jsp/webapps/errors/failing-runtime.ftl | 18 ++++++++++++++++++
.../ext/jsp/webapps/errors/not-failing.ftl | 18 ++++++++++++++++++
.../multipleLoaders/WEB-INF/templates/test.ftl | 18 ++++++++++++++++++
.../jsp/webapps/tldDiscovery/subdir/test-rel.ftl | 18 ++++++++++++++++++
.../webapps/tldDiscovery/test-noClasspath.ftl | 18 ++++++++++++++++++
.../ext/jsp/webapps/tldDiscovery/test1.ftl | 18 ++++++++++++++++++
.../manual/AutoEscapingExample-capture.ftlh | 18 ++++++++++++++++++
.../manual/AutoEscapingExample-convert.ftlh | 18 ++++++++++++++++++
.../manual/AutoEscapingExample-convert2.ftl | 18 ++++++++++++++++++
.../manual/AutoEscapingExample-infoBox.ftlh | 18 ++++++++++++++++++
.../manual/AutoEscapingExample-markup.ftlh | 18 ++++++++++++++++++
.../manual/AutoEscapingExample-stringConcat.ftlh | 18 ++++++++++++++++++
.../AutoEscapingExample-stringLiteral.ftlh | 18 ++++++++++++++++++
.../AutoEscapingExample-stringLiteral2.ftlh | 18 ++++++++++++++++++
.../manual/CustomFormatsExample-alias1.ftlh | 18 ++++++++++++++++++
.../manual/CustomFormatsExample-alias2.ftlh | 18 ++++++++++++++++++
.../manual/CustomFormatsExample-modelAware.ftlh | 18 ++++++++++++++++++
src/test/resources/freemarker/manual/test.ftlh | 18 ++++++++++++++++++
.../resources/freemarker/template/toCache1.ftl | 18 ++++++++++++++++++
.../resources/freemarker/template/toCache2.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/api-builtins.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/arithmetic.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/assignments.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/bean-maps.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/beans.ftl | 18 ++++++++++++++++++
.../templates/boolean-formatting.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/boolean.ftl | 18 ++++++++++++++++++
.../templates/charset-in-header.ftl | 18 ++++++++++++++++++
.../templates/charset-in-header_inc1.ftl | 18 ++++++++++++++++++
.../templates/charset-in-header_inc2.ftl | 18 ++++++++++++++++++
.../templates/classic-compatible-mode2.ftl | 18 ++++++++++++++++++
.../templates/classic-compatible.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/comment.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/comparisons.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/compress.ftl | 18 ++++++++++++++++++
.../templates/date-type-builtins.ftl | 18 ++++++++++++++++++
.../templates/dateformat-iso-bi-common.ftl | 18 ++++++++++++++++++
.../templates/dateformat-iso-bi-ici-2.3.21.ftl | 18 ++++++++++++++++++
.../templates/dateformat-iso-bi.ftl | 18 ++++++++++++++++++
.../templates/dateformat-iso-like.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/dateformat-java.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/dateparsing.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/default-xmlns.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/default.ftl | 18 ++++++++++++++++++
.../templates/encoding-builtins.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/escapes.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/exception.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/exception2.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/exception3.ftl | 18 ++++++++++++++++++
.../templates/existence-operators.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/exthash.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/hashconcat.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/hashliteral.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/helloworld.ftl | 18 ++++++++++++++++++
.../templates/identifier-escaping.ftl | 18 ++++++++++++++++++
.../templates/identifier-non-ascii.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/if.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/import.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/import_lib.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/include.ftl | 18 ++++++++++++++++++
.../templates/include2-included-encoding.ftl | 18 ++++++++++++++++++
.../templates/include2-included.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/include2.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/included.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/interpret.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/iterators.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/lastcharacter.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/list-bis.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/list.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/list2.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/list3.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/listliteral.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/localization.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/localization_en.ftl | 18 ++++++++++++++++++
.../templates/localization_en_AU.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/logging.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/loopvariable.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/macros-return.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/macros.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/macros2.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/multimodels.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/nested.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/nestedinclude.ftl | 18 ++++++++++++++++++
.../templates/new-allowsnothing.ftl | 18 ++++++++++++++++++
.../templates/new-defaultresolver.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/new-optin.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/new-safer.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/new-unrestricted.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/newlines1.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/newlines2.ftl | 18 ++++++++++++++++++
.../templates/non-strict-syntax.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/noparse.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/number-format.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/number-literal.ftl | 18 ++++++++++++++++++
.../templates/number-math-builtins.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/number-to-date.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/numerical-cast.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/output-encoding1.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/output-encoding2.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/output-encoding3.ftl | 18 ++++++++++++++++++
.../overloaded-methods-2-bwici-2.3.20.ftl | 18 ++++++++++++++++++
.../overloaded-methods-2-bwici-2.3.21.ftl | 18 ++++++++++++++++++
.../templates/overloaded-methods-2-common.ftl | 18 ++++++++++++++++++
.../overloaded-methods-2-desc-bwici-2.3.20.ftl | 18 ++++++++++++++++++
.../overloaded-methods-2-inc-bwici-2.3.20.ftl | 18 ++++++++++++++++++
.../templates/overloaded-methods-23bc.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/precedence.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/range-common.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/range-ici-2.3.20.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/range-ici-2.3.21.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/recover.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/root.ftl | 18 ++++++++++++++++++
.../templates/sequence-builtins.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/setting.ftl | 18 ++++++++++++++++++
.../templates/simplehash-char-key.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/specialvars.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/strictinheader.ftl | 18 ++++++++++++++++++
.../templates/strictinheader_inc1.ftl | 18 ++++++++++++++++++
.../templates/strictinheader_inc2.ftl | 18 ++++++++++++++++++
.../templates/string-builtin-coercion.ftl | 18 ++++++++++++++++++
.../templates/string-builtins-ici-2.3.19.ftl | 18 ++++++++++++++++++
.../templates/string-builtins-ici-2.3.20.ftl | 18 ++++++++++++++++++
.../string-builtins-regexps-matches.ftl | 18 ++++++++++++++++++
.../templates/string-builtins-regexps.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/string-builtins1.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/string-builtins2.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/string-builtins3.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/stringbimethods.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/stringliteral.ftl | 18 ++++++++++++++++++
.../templates/subdir/include-subdir.ftl | 18 ++++++++++++++++++
.../templates/subdir/include-subdir2.ftl | 18 ++++++++++++++++++
.../templates/subdir/new-optin-2.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/subdir/new-optin.ftl | 18 ++++++++++++++++++
.../templates/subdir/subsub/new-optin.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/switch-builtin.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/switch.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/then-builtin.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/transforms.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/type-builtins.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/undefined.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/url.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/var-layers.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/varargs.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/variables.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/varlayers_lib.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/whitespace-trim.ftl | 18 ++++++++++++++++++
.../templates/wsstripinheader_inc.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/wstrip-in-header.ftl | 18 ++++++++++++++++++
.../templatesuite/templates/xml-fragment.ftl | 18 ++++++++++++++++++
.../templates/xml-ns_prefix-scope-lib.ftl | 18 ++++++++++++++++++
.../templates/xml-ns_prefix-scope-main.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/xml.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/xmlns1.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/xmlns3.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/xmlns4.ftl | 18 ++++++++++++++++++
.../test/templatesuite/templates/xmlns5.ftl | 18 ++++++++++++++++++
200 files changed, 3600 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/ant/src/template/faq2html.ftl
----------------------------------------------------------------------
diff --git a/src/examples/ant/src/template/faq2html.ftl b/src/examples/ant/src/template/faq2html.ftl
index 3012554..fb6a8ca 100644
--- a/src/examples/ant/src/template/faq2html.ftl
+++ b/src/examples/ant/src/template/faq2html.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.
+-->
<#escape x as x?html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/struts-webapp/add.ftl
----------------------------------------------------------------------
diff --git a/src/examples/struts-webapp/add.ftl b/src/examples/struts-webapp/add.ftl
index 6f5b4a4..e1c09b9 100644
--- a/src/examples/struts-webapp/add.ftl
+++ b/src/examples/struts-webapp/add.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 "/lib/common.ftl" as com>
<#escape x as x?html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/struts-webapp/form.ftl
----------------------------------------------------------------------
diff --git a/src/examples/struts-webapp/form.ftl b/src/examples/struts-webapp/form.ftl
index f2f7133..ee92da1 100644
--- a/src/examples/struts-webapp/form.ftl
+++ b/src/examples/struts-webapp/form.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 "/lib/common.ftl" as com>
<#global html=JspTaglibs["/WEB-INF/struts-html.tld"]>
<#escape x as x?html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/struts-webapp/index.ftl
----------------------------------------------------------------------
diff --git a/src/examples/struts-webapp/index.ftl b/src/examples/struts-webapp/index.ftl
index bcf77d5..531017c 100644
--- a/src/examples/struts-webapp/index.ftl
+++ b/src/examples/struts-webapp/index.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 "/lib/common.ftl" as com>
<#escape x as x?html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/struts-webapp/lib/common.ftl
----------------------------------------------------------------------
diff --git a/src/examples/struts-webapp/lib/common.ftl b/src/examples/struts-webapp/lib/common.ftl
index 05128c8..57d11be 100644
--- a/src/examples/struts-webapp/lib/common.ftl
+++ b/src/examples/struts-webapp/lib/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.
+-->
<#macro page title>
<html>
<head>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/webapp1/WEB-INF/templates/test.ftl
----------------------------------------------------------------------
diff --git a/src/examples/webapp1/WEB-INF/templates/test.ftl b/src/examples/webapp1/WEB-INF/templates/test.ftl
index 49bd998..4a63c14 100644
--- a/src/examples/webapp1/WEB-INF/templates/test.ftl
+++ b/src/examples/webapp1/WEB-INF/templates/test.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 Example Web Application 1</title>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/webapp2/WEB-INF/templates/add.ftl
----------------------------------------------------------------------
diff --git a/src/examples/webapp2/WEB-INF/templates/add.ftl b/src/examples/webapp2/WEB-INF/templates/add.ftl
index 0dff5eb..58777b6 100644
--- a/src/examples/webapp2/WEB-INF/templates/add.ftl
+++ b/src/examples/webapp2/WEB-INF/templates/add.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 "/lib/common.ftl" as com>
<#escape x as x?html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/webapp2/WEB-INF/templates/form.ftl
----------------------------------------------------------------------
diff --git a/src/examples/webapp2/WEB-INF/templates/form.ftl b/src/examples/webapp2/WEB-INF/templates/form.ftl
index 77e186e..69b9b66 100644
--- a/src/examples/webapp2/WEB-INF/templates/form.ftl
+++ b/src/examples/webapp2/WEB-INF/templates/form.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 "/lib/common.ftl" as com>
<#escape x as x?html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/webapp2/WEB-INF/templates/index.ftl
----------------------------------------------------------------------
diff --git a/src/examples/webapp2/WEB-INF/templates/index.ftl b/src/examples/webapp2/WEB-INF/templates/index.ftl
index 9a0ceae..92ae90d 100644
--- a/src/examples/webapp2/WEB-INF/templates/index.ftl
+++ b/src/examples/webapp2/WEB-INF/templates/index.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 "/lib/common.ftl" as com>
<#escape x as x?html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/examples/webapp2/WEB-INF/templates/lib/common.ftl
----------------------------------------------------------------------
diff --git a/src/examples/webapp2/WEB-INF/templates/lib/common.ftl b/src/examples/webapp2/WEB-INF/templates/lib/common.ftl
index 550ded4..c6c43ae 100644
--- a/src/examples/webapp2/WEB-INF/templates/lib/common.ftl
+++ b/src/examples/webapp2/WEB-INF/templates/lib/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.
+-->
<#macro page title>
<html>
<head>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/main/misc/overloadedNumberRules/generator.ftl
----------------------------------------------------------------------
diff --git a/src/main/misc/overloadedNumberRules/generator.ftl b/src/main/misc/overloadedNumberRules/generator.ftl
index bbd7463..31aec37 100644
--- a/src/main/misc/overloadedNumberRules/generator.ftl
+++ b/src/main/misc/overloadedNumberRules/generator.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.
+-->
static int getArgumentConversionPrice(Class fromC, Class toC) {
// DO NOT EDIT, generated code!
// See: src\main\misc\overloadedNumberRules\README.txt
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/cache/test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/cache/test.ftl b/src/test/resources/freemarker/cache/test.ftl
index 2995a4d..3a1f6b5 100644
--- a/src/test/resources/freemarker/cache/test.ftl
+++ b/src/test/resources/freemarker/cache/test.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.
+-->
dummy
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-1.ftl b/src/test/resources/freemarker/core/ast-1.ftl
index 9070f4e..3f45dda 100644
--- a/src/test/resources/freemarker/core/ast-1.ftl
+++ b/src/test/resources/freemarker/core/ast-1.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.
+-->
1 <@foo x=1 y=2; b1, b2>x</...@foo>
2 <@ns.bar 1 2; b1, b2>y</@>
3 <#assign x = 123><#assign x = 123 in ns><#global x = 123>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-assignments.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-assignments.ftl b/src/test/resources/freemarker/core/ast-assignments.ftl
index d8b4633..fc5aaa5 100644
--- a/src/test/resources/freemarker/core/ast-assignments.ftl
+++ b/src/test/resources/freemarker/core/ast-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.
+-->
1 <#assign x = 1>
2 <#assign x = 1, y = 2>
3 <#assign x = 1 in ns>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-builtins.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-builtins.ftl b/src/test/resources/freemarker/core/ast-builtins.ftl
index b035549..06f65ad 100644
--- a/src/test/resources/freemarker/core/ast-builtins.ftl
+++ b/src/test/resources/freemarker/core/ast-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.
+-->
${x?trim}
${x?left_pad(5)}
${x?left_pad(5, '-')}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-locations.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-locations.ftl b/src/test/resources/freemarker/core/ast-locations.ftl
index 6f299c4..a8fdcd7 100644
--- a/src/test/resources/freemarker/core/ast-locations.ftl
+++ b/src/test/resources/freemarker/core/ast-locations.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.
+-->
<#if exp></#if>
<#if exp>1</#if>
<#if exp>${1}2</#if>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-mixedcontentsimplifications.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-mixedcontentsimplifications.ftl b/src/test/resources/freemarker/core/ast-mixedcontentsimplifications.ftl
index f83bdde..a11ffe7 100644
--- a/src/test/resources/freemarker/core/ast-mixedcontentsimplifications.ftl
+++ b/src/test/resources/freemarker/core/ast-mixedcontentsimplifications.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.
+-->
<#if true>
<#if true>
</#if>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-multipleignoredchildren.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-multipleignoredchildren.ftl b/src/test/resources/freemarker/core/ast-multipleignoredchildren.ftl
index 10b8d87..009962a 100644
--- a/src/test/resources/freemarker/core/ast-multipleignoredchildren.ftl
+++ b/src/test/resources/freemarker/core/ast-multipleignoredchildren.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.
+-->
a
<#compress></#compress>
b
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl b/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl
index 2f6043a..9d2ed7a 100644
--- a/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl
+++ b/src/test/resources/freemarker/core/ast-nestedignoredchildren.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.
+-->
<#outputFormat 'HTML'><#outputFormat 'HTML'><#outputFormat 'HTML'></#outputFormat></#outputFormat></#outputFormat>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-range.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-range.ftl b/src/test/resources/freemarker/core/ast-range.ftl
index cc493d2..f6c837b 100644
--- a/src/test/resources/freemarker/core/ast-range.ftl
+++ b/src/test/resources/freemarker/core/ast-range.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 = 0..>
<#assign x = 0..1>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-strlitinterpolation.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-strlitinterpolation.ftl b/src/test/resources/freemarker/core/ast-strlitinterpolation.ftl
index f67ba55..641f39c 100644
--- a/src/test/resources/freemarker/core/ast-strlitinterpolation.ftl
+++ b/src/test/resources/freemarker/core/ast-strlitinterpolation.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.
+-->
1. <@m x='${e1}' y='$\\{e2}' />
2. ${'a${x}b${x}c'}
3. ${'${x}b'}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/ast-whitesoacestripping.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-whitesoacestripping.ftl b/src/test/resources/freemarker/core/ast-whitesoacestripping.ftl
index 5349852..af801fa 100644
--- a/src/test/resources/freemarker/core/ast-whitesoacestripping.ftl
+++ b/src/test/resources/freemarker/core/ast-whitesoacestripping.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 xs = []>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-assignments-canonical.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-assignments-canonical.ftl b/src/test/resources/freemarker/core/cano-assignments-canonical.ftl
index 63389cf..4450b16 100644
--- a/src/test/resources/freemarker/core/cano-assignments-canonical.ftl
+++ b/src/test/resources/freemarker/core/cano-assignments-canonical.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>
<#assign x = 1, y = 2>
<#assign x = 1 in ns>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-assignments.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-assignments.ftl b/src/test/resources/freemarker/core/cano-assignments.ftl
index 74501f1..1719dd5 100644
--- a/src/test/resources/freemarker/core/cano-assignments.ftl
+++ b/src/test/resources/freemarker/core/cano-assignments.ftl
@@ -1,4 +1,22 @@
<#ftl stripWhitespace=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.
+-->
<#assign x = 1>
<#assign x = 1, y = 2>
<#assign x = 1 in ns>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-builtins-canonical.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-builtins-canonical.ftl b/src/test/resources/freemarker/core/cano-builtins-canonical.ftl
index 8e5452b..74b15e8 100644
--- a/src/test/resources/freemarker/core/cano-builtins-canonical.ftl
+++ b/src/test/resources/freemarker/core/cano-builtins-canonical.ftl
@@ -1,4 +1,21 @@
-${x?trim}
+<#--
+ 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.
+-->${x?trim}
${x?left_pad(5)}
${x?left_pad(5, "-")}
${x?then("y", "n")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-builtins.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-builtins.ftl b/src/test/resources/freemarker/core/cano-builtins.ftl
index b035549..06f65ad 100644
--- a/src/test/resources/freemarker/core/cano-builtins.ftl
+++ b/src/test/resources/freemarker/core/cano-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.
+-->
${x?trim}
${x?left_pad(5)}
${x?left_pad(5, '-')}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-identifier-escaping-canonical.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-identifier-escaping-canonical.ftl b/src/test/resources/freemarker/core/cano-identifier-escaping-canonical.ftl
index c5bdb73..7a696b1 100644
--- a/src/test/resources/freemarker/core/cano-identifier-escaping-canonical.ftl
+++ b/src/test/resources/freemarker/core/cano-identifier-escaping-canonical.ftl
@@ -1,4 +1,21 @@
-<#macro m\-a data\-color><#local \.namespace = 123><a-b>${data\-color}<#nested \.namespace></a-b></#macro><#macro m\-b2></#macro><#macro "m/b2"></#macro>
+<#--
+ 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></#macro><#macro m\-b2></#macro><#macro "m/b2"></#macro>
<@m\-a data\-color="red"; loop\-var, loopVar2>${loop\-var}</@m\-a>
<#function f\-a(p\-a)><#return p\-a + " works"/></#function>${f\-a("f-a")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-identifier-escaping.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-identifier-escaping.ftl b/src/test/resources/freemarker/core/cano-identifier-escaping.ftl
index 6f3d62a..01f1d3c 100644
--- a/src/test/resources/freemarker/core/cano-identifier-escaping.ftl
+++ b/src/test/resources/freemarker/core/cano-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/core/cano-macros-canonical.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-macros-canonical.ftl b/src/test/resources/freemarker/core/cano-macros-canonical.ftl
index 1d039c2..6ed0de1 100644
--- a/src/test/resources/freemarker/core/cano-macros-canonical.ftl
+++ b/src/test/resources/freemarker/core/cano-macros-canonical.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></#macro>
<#macro m a></#macro>
<#macro m a b></#macro>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-macros.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-macros.ftl b/src/test/resources/freemarker/core/cano-macros.ftl
index c573a96..bd6a780 100644
--- a/src/test/resources/freemarker/core/cano-macros.ftl
+++ b/src/test/resources/freemarker/core/cano-macros.ftl
@@ -1,4 +1,22 @@
<#ftl stripWhitespace=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.
+-->
<#macro m></#macro>
<#macro m a></#macro>
<#macro m a b></#macro>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-strlitinterpolation-canonical.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-strlitinterpolation-canonical.ftl b/src/test/resources/freemarker/core/cano-strlitinterpolation-canonical.ftl
index 02099d2..a3cd33e 100644
--- a/src/test/resources/freemarker/core/cano-strlitinterpolation-canonical.ftl
+++ b/src/test/resources/freemarker/core/cano-strlitinterpolation-canonical.ftl
@@ -1 +1,18 @@
-<@m x="${e1 + \"a'b$\{x}\"}#{x ; m0M2}" y="$\{e2}"/>
\ No newline at end of file
+<#--
+ 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.
+--><@m x="${e1 + \"a'b$\{x}\"}#{x ; m0M2}" y="$\{e2}"/>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/cano-strlitinterpolation.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/cano-strlitinterpolation.ftl b/src/test/resources/freemarker/core/cano-strlitinterpolation.ftl
index 0a7805b..718aeec 100644
--- a/src/test/resources/freemarker/core/cano-strlitinterpolation.ftl
+++ b/src/test/resources/freemarker/core/cano-strlitinterpolation.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.
+-->
<@m x='${e1 + "a\'b${x}"}#{x; M2}' y='$\{e2}' />
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.ftl b/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.ftl
index 7cc291b..99f336b 100644
--- a/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.ftl
+++ b/src/test/resources/freemarker/core/encodingOverride-ISO-8859-1.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.
+-->
B�ka
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/core/encodingOverride-UTF-8.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/encodingOverride-UTF-8.ftl b/src/test/resources/freemarker/core/encodingOverride-UTF-8.ftl
index ab8ad6b..0c5401e 100644
--- a/src/test/resources/freemarker/core/encodingOverride-UTF-8.ftl
+++ b/src/test/resources/freemarker/core/encodingOverride-UTF-8.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.
+-->
Béka
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/templates/classpath-test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/templates/classpath-test.ftl b/src/test/resources/freemarker/ext/jsp/templates/classpath-test.ftl
index e32e622..0180281 100644
--- a/src/test/resources/freemarker/ext/jsp/templates/classpath-test.ftl
+++ b/src/test/resources/freemarker/ext/jsp/templates/classpath-test.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.
+-->
In classpath-test.ftl
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/basic/attributes.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/basic/attributes.ftl b/src/test/resources/freemarker/ext/jsp/webapps/basic/attributes.ftl
index 4ba62cb..dd05b27 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/basic/attributes.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/basic/attributes.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 t = JspTaglibs["http://freemarker.org/test/taglibs/test"]>
a1: ${a1!'-'}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/basic/customELFunctions1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/basic/customELFunctions1.ftl b/src/test/resources/freemarker/ext/jsp/webapps/basic/customELFunctions1.ftl
index 89b0d4f..6e071a3 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/basic/customELFunctions1.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/basic/customELFunctions1.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 ef = JspTaglibs["http://freemarker.org/test/taglibs/el-functions"]>
${ef.reverse("abc")}
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/basic/customTags1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/basic/customTags1.ftl b/src/test/resources/freemarker/ext/jsp/webapps/basic/customTags1.ftl
index 061d2d1..62ae7c7 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/basic/customTags1.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/basic/customTags1.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 t = JspTaglibs["http://freemarker.org/test/taglibs/test"]>
<!-- Test repeated execution -->
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial-jstl-@Ignore.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial-jstl-@Ignore.ftl b/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial-jstl-@Ignore.ftl
index ed56093..b81f7c4 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial-jstl-@Ignore.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial-jstl-@Ignore.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.
+-->
<#-- @Ignore: c:forEach fails because of EL context issues -->
<#assign
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial.ftl b/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial.ftl
index 5a6a243..ec2710d 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/basic/trivial.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.
+-->
${n + 1}
<#-- Instead of JSTL: -->
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/sub/test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/sub/test.ftl b/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/sub/test.ftl
index 3ebf4a6..ae05634 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/sub/test.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/sub/test.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.
+-->
from /WEB-INF/classes/sub
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/test.ftl b/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/test.ftl
index 452ece6..57186a2 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/test.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/classes/test.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.
+-->
from /WEB-INF/classes
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/templates/test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/templates/test.ftl b/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/templates/test.ftl
index 725fa1b..0f06309 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/templates/test.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/config/WEB-INF/templates/test.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.
+-->
from /WEB-INF/templates
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/config/test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/config/test.ftl b/src/test/resources/freemarker/ext/jsp/webapps/config/test.ftl
index 38d8af4..49a80f2 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/config/test.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/config/test.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.
+-->
from /
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.ftl b/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.ftl
index df15a2c..04bc8aa 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/errors/failing-runtime.ftl
@@ -1,4 +1,22 @@
<#--
+ 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.
+-->
+<#--
<#attempt>
${noSuchVariableInAttempt}
<#recover>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/errors/not-failing.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/errors/not-failing.ftl b/src/test/resources/freemarker/ext/jsp/webapps/errors/not-failing.ftl
index 1910281..be33775 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/errors/not-failing.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/errors/not-failing.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.
+-->
foo
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/WEB-INF/templates/test.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/WEB-INF/templates/test.ftl b/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/WEB-INF/templates/test.ftl
index 424be2d..5eb7864 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/WEB-INF/templates/test.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/multipleLoaders/WEB-INF/templates/test.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.
+-->
In test.ftl
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/subdir/test-rel.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/subdir/test-rel.ftl b/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/subdir/test-rel.ftl
index 34a731e..870eae4 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/subdir/test-rel.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/subdir/test-rel.ftl
@@ -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.
+-->
<@JspTaglibs["taglib"].simpletag />
<@JspTaglibs["taglib"].simpletag />
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test-noClasspath.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test-noClasspath.ftl b/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test-noClasspath.ftl
index 848f142..1616bef 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test-noClasspath.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test-noClasspath.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.
+-->
<!-- Test loading from web.xml-mapped JAR -->
<#assign tl2 = JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-2.2-2"]>
<@tl2.testtag></@>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test1.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test1.ftl b/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test1.ftl
index 5eceebf..7fd620f 100644
--- a/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test1.ftl
+++ b/src/test/resources/freemarker/ext/jsp/webapps/tldDiscovery/test1.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.
+-->
<!-- Test loading from web.xml-mapped JAR -->
<@JspTaglibs["http://freemarker.sf.net/taglibs/freemarker-junit-test-tag-2.2"].simpletag bodyLoopCount=1 name="simpletag1">
foo
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
index d371b44..61cd076 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-capture.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-capture.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 captured><b>Test</b></#assign>
Just a string: ${"<b>Test</b>"}
Captured output: ${captured}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/559381f3/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh b/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
index e7eadaf..c3105f5 100644
--- a/src/test/resources/freemarker/manual/AutoEscapingExample-convert.ftlh
+++ b/src/test/resources/freemarker/manual/AutoEscapingExample-convert.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 mo1 = "Foo's bar {}"?esc>
HTLM: ${mo1}
XML: <#outputformat 'XML'>${mo1}</#outputformat>