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 2017/03/13 10:57:51 UTC
[15/50] incubator-freemarker-site git commit: 2.3.26-nightly docs
preview
http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/52c070a9/builds/2.3.26-nightly/versions_2_0.html
----------------------------------------------------------------------
diff --git a/builds/2.3.26-nightly/versions_2_0.html b/builds/2.3.26-nightly/versions_2_0.html
new file mode 100644
index 0000000..ba13c93
--- /dev/null
+++ b/builds/2.3.26-nightly/versions_2_0.html
@@ -0,0 +1,147 @@
+<!doctype html>
+<!-- Generated by FreeMarker/Docgen from DocBook -->
+<html lang="en" class="page-type-section">
+<head prefix="og: http://ogp.me/ns#">
+<meta charset="utf-8">
+<title>2.0 - Apache FreeMarker Manual</title>
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<meta name="format-detection" content="telephone=no">
+<meta property="og:site_name" content="Apache FreeMarker Manual">
+<meta property="og:title" content="2.0">
+<meta property="og:locale" content="en_US">
+<meta property="og:url" content="http://freemarker.org/docs/versions_2_0.html">
+<link rel="canonical" href="http://freemarker.org/docs/versions_2_0.html">
+<link rel="icon" href="favicon.png" type="image/png">
+<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:500,700,400,300|Droid+Sans+Mono">
+<link rel="stylesheet" type="text/css" href="docgen-resources/docgen.min.css?1489402528979">
+<script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ga('create', 'UA-55420501-1', 'auto');
+ga('send', 'pageview');
+</script>
+</head>
+<body itemscope itemtype="https://schema.org/Code">
+ <meta itemprop="url" content="http://freemarker.org/docs/">
+ <meta itemprop="name" content="Apache FreeMarker Manual">
+
+ <!--[if lte IE 9]>
+ <div style="background-color: #C00; color: #fff; padding: 12px 24px;">Please use a modern browser to view this website.</div>
+ <![endif]--><div class="header-top-bg"><div class="site-width header-top"><a class="logo" href="http://freemarker.org" role="banner"> <img itemprop="image" src="logo.png" alt="FreeMarker">
+</a><ul class="tabs"><li><a href="http://freemarker.org/">Home</a></li><li class="current"><a href="index.html">Manual</a></li><li><a class="external" href="api/index.html">Java API</a></li></ul><ul class="secondary-tabs"><li><a class="tab icon-heart" href="http://freemarker.org/contribute.html" title="Contribute"><span>Contribute</span></a></li><li><a class="tab icon-bug" href="https://issues.apache.org/jira/browse/FREEMARKER/" title="Report a Bug"><span>Report a Bug</span></a></li><li><a class="tab icon-download" href="http://freemarker.org/freemarkerdownload.html" title="Download"><span>Download</span></a></li></ul></div></div><div class="header-bottom-bg"><div class="site-width search-row"><a href="index.html" class="navigation-header">Manual</a><div class="navigation-header"></div><form method="get" class="search-form" action="search-results.html"><fieldset><legend class="sr-only">Search form</legend><label for="search-field" class="sr-only">Search query</label><input id="searc
h-field" name="q" type="search" class="search-input" placeholder="Search" spellcheck="false" autocorrect="off" autocomplete="off"><button type="submit" class="search-btn"><span class="sr-only">Search</span></button></fieldset></form></div><div class="site-width breadcrumb-row"><ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"><li class="step-0" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="index.html"><span itemprop="name">Apache FreeMarker Manual</span></a></li><li class="step-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app.html"><span itemprop="name">Appendixes</span></a></li><li class="step-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app_versions.html"><span itemprop="name">Version history</span></a></li><li class="step-3" itemprop="itemListEl
ement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="versions_2_0.html"><span itemprop="name">2.0</span></a></li></ul><div class="bookmarks" title="Bookmarks"><span class="sr-only">Bookmarks:</span><ul class="bookmark-list"><li><a href="alphaidx.html">Alpha. index</a></li><li><a href="gloss.html">Glossary</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions</a></li><li><a href="ref_builtins_alphaidx.html">?builtins</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_specvar.html">.spec_vars</a></li><li><a href="app_faq.html">FAQ</a></li></ul></div></div></div> <div class="main-content site-width">
+ <div class="content-wrapper">
+ <div id="table-of-contents-wrapper" class="col-left">
+ <script>var breadcrumb = ["Apache FreeMarker Manual","Appendixes","Version history","2.0"];</script>
+ <script src="toc.js?1489402528979"></script>
+ <script src="docgen-resources/main.min.js?1489402528979"></script>
+ </div>
+<div class="col-right"><div class="page-content"><div class="page-title"><div class="pagers top"><a class="paging-arrow previous" href="versions_2_01.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0RC3.html"><span>Next</span></a></div><div class="title-wrapper">
+<h1 class="content-header header-section1" id="versions_2_0" itemprop="headline">2.0</h1>
+</div></div><div class="page-menu">
+<div class="page-menu-title">Page Contents</div>
+<ul><li><a class="page-menu-link" href="#autoid_281" data-menu-target="autoid_281">Bugfixes</a></li><li><a class="page-menu-link" href="#autoid_282" data-menu-target="autoid_282">Changes to the Template language</a></li><li><a class="page-menu-link" href="#autoid_283" data-menu-target="autoid_283">Changes to the API</a></li><li><a class="page-menu-link" href="#autoid_284" data-menu-target="autoid_284">Miscellany</a></li></ul> </div><p>FreeMarker 2.0 final was released on 18 April 2002. The changes
+ with respect to the previous release, 2.0 RC3 are fairly minor.</p>
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_281">Bugfixes</h2>
+
+
+ <ul>
+ <li>
+ <p>There were a couple of bugs in handling null values, where
+ Lazarus did not do the same thing as FreeMarker Classic.
+ Traditionally, in FreeMarker, nulls were treated as being
+ equivalent to an empty string in the appropriate context. At
+ this point, to the best of our knowledge, there is backward
+ compatibility with FreeMarker Classic in this respect.</p>
+ </li>
+
+ <li>
+ <p>Literal strings can now include line breaks. This was a
+ backward compatibility issue with FreeMarker Classic that has
+ been fixed.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_282">Changes to the Template language</h2>
+
+
+ <ul>
+ <li>
+ <p>You can use the extra built-in of
+ <code class="inline-code">myString?web_safe</code> to convert a string to its
+ "web-safe" equivalent, where problematic characters such as
+ '<' are converted to &lt;.</p>
+ </li>
+
+ <li>
+ <p>In displaying numbers with a fractional part, the
+ rendering apparatus now respects the decimal separator of the
+ template's locale, so that, for example, in continental Europe,
+ you would see 1,1 and in the U.S. locale, 1.1.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_283">Changes to the API</h2>
+
+
+ <ul>
+ <li>
+ <p>The <code class="inline-code">getAsString()</code> method in the
+ <code class="inline-code">TemplateScalarModel</code> interface now takes a
+ <code class="inline-code">java.util.Locale</code> as a parameter. For the most
+ part, this is a hook for later use. In the default
+ implementation, <code class="inline-code">SimpleScalar</code>, this parameter
+ is unused. If you are implementing this interface yourself, your
+ implementation may ignore the parameter. However, it will be
+ appealing for certain implementations.</p>
+ </li>
+
+ <li>
+ <p>The constructors of <code class="inline-code">FileTemplateCache</code>
+ have changed. If you are using an absolute directory on the file
+ system as the location of your templates, you need to pass in an
+ instance of <code class="inline-code">java.io.File</code> to indicate the
+ location. If you use the constructors that take a string, this
+ is taken to mean relative to the classloader classpath.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_284">Miscellany</h2>
+
+
+ <p>The ant build script build.xml now contains a target that
+ builds a .war file containing the Hello, World and Guestbook
+ examples. It builds a fmexamples.war. For example, if you are using
+ Tomcat in its out-of-the-box configuration, you would place this
+ under <TOMCAT_HOME>/webapps and then you would use
+ http://localhost:8080/fmexamples/servlet/hello and
+ http://localhost:8080/fmexamples/servlet/guestbook for the Hello,
+ World and Guestbook examples respectively.</p>
+ <div class="bottom-pagers-wrapper"><div class="pagers bottom"><a class="paging-arrow previous" href="versions_2_01.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0RC3.html"><span>Next</span></a></div></div></div></div> </div>
+ </div>
+<div class="site-footer"><div class="site-width"><div class="footer-top"><div class="col-left sitemap"><div class="column"><h3 class="column-header">Overview</h3><ul><li><a href="http://freemarker.org/">What is FreeMarker?</a></li><li><a href="http://freemarker.org/freemarkerdownload.html">Download</a></li><li><a href="app_versions.html">Version history</a></li><li><a href="http://freemarker.org/history.html">About us</a></li><li><a itemprop="license" href="app_license.html">License</a></li></ul></div><div class="column"><h3 class="column-header">Handy stuff</h3><ul><li><a href="http://freemarker-online.kenshoo.com/">Try template online</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions cheatsheet</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_builtins_alphaidx.html">?built_ins</a></li><li><a href="ref_specvar.html">.special_vars</a></li></ul></div><div class="column"><h3 class="column-header">Community</h3><ul><li><a href
="https://github.com/freemarker/freemarker">FreeMarker on Github</a></li><li><a href="https://twitter.com/freemarker">Follow us on Twitter</a></li><li><a href="https://issues.apache.org/jira/browse/FREEMARKER/">Report a bug</a></li><li><a href="http://stackoverflow.com/questions/ask?tags=freemarker">Ask a question</a></li><li><a href="http://freemarker.org/mailing-lists.html">Mailing lists</a></li></ul></div></div><div class="col-right"><ul class="social-icons"><li><a class="github" href="https://github.com/freemarker/freemarker">Github</a></li><li><a class="twitter" href="https://twitter.com/freemarker">Twitter</a></li><li><a class="stack-overflow" href="http://stackoverflow.com/questions/ask?tags=freemarker">Stack Overflow</a></li></ul><a class="xxe" href="http://www.xmlmind.com/xmleditor/" rel="nofollow" title="Edited with XMLMind XML Editor"><span>Edited with XMLMind XML Editor</span></a></div></div><div class="footer-bottom"> <p class="last-generated">
+Last generated:
+<time itemprop="dateModified" datetime="2017-03-13T10:55:28Z" title="Monday, March 13, 2017 10:55:28 AM GMT">2017-03-13 10:55:28 GMT</time>, for Freemarker 2.3.26 </p>
+<p class="copyright">
+� <span itemprop="copyrightYear">1999</span>\u20132017
+<a itemtype="http://schema.org/Organization" itemprop="copyrightHolder" href="http://apache.org/">The Apache Software Foundation</a>. Apache FreeMarker, FreeMarker, Apache Incubator, Apache, the Apache FreeMarker logo are trademarks of The Apache Software Foundation. </p>
+</div></div></div></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/52c070a9/builds/2.3.26-nightly/versions_2_01.html
----------------------------------------------------------------------
diff --git a/builds/2.3.26-nightly/versions_2_01.html b/builds/2.3.26-nightly/versions_2_01.html
new file mode 100644
index 0000000..d9f68f1
--- /dev/null
+++ b/builds/2.3.26-nightly/versions_2_01.html
@@ -0,0 +1,59 @@
+<!doctype html>
+<!-- Generated by FreeMarker/Docgen from DocBook -->
+<html lang="en" class="page-type-section">
+<head prefix="og: http://ogp.me/ns#">
+<meta charset="utf-8">
+<title>2.01 - Apache FreeMarker Manual</title>
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<meta name="format-detection" content="telephone=no">
+<meta property="og:site_name" content="Apache FreeMarker Manual">
+<meta property="og:title" content="2.01">
+<meta property="og:locale" content="en_US">
+<meta property="og:url" content="http://freemarker.org/docs/versions_2_01.html">
+<link rel="canonical" href="http://freemarker.org/docs/versions_2_01.html">
+<link rel="icon" href="favicon.png" type="image/png">
+<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:500,700,400,300|Droid+Sans+Mono">
+<link rel="stylesheet" type="text/css" href="docgen-resources/docgen.min.css?1489402528979">
+<script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ga('create', 'UA-55420501-1', 'auto');
+ga('send', 'pageview');
+</script>
+</head>
+<body itemscope itemtype="https://schema.org/Code">
+ <meta itemprop="url" content="http://freemarker.org/docs/">
+ <meta itemprop="name" content="Apache FreeMarker Manual">
+
+ <!--[if lte IE 9]>
+ <div style="background-color: #C00; color: #fff; padding: 12px 24px;">Please use a modern browser to view this website.</div>
+ <![endif]--><div class="header-top-bg"><div class="site-width header-top"><a class="logo" href="http://freemarker.org" role="banner"> <img itemprop="image" src="logo.png" alt="FreeMarker">
+</a><ul class="tabs"><li><a href="http://freemarker.org/">Home</a></li><li class="current"><a href="index.html">Manual</a></li><li><a class="external" href="api/index.html">Java API</a></li></ul><ul class="secondary-tabs"><li><a class="tab icon-heart" href="http://freemarker.org/contribute.html" title="Contribute"><span>Contribute</span></a></li><li><a class="tab icon-bug" href="https://issues.apache.org/jira/browse/FREEMARKER/" title="Report a Bug"><span>Report a Bug</span></a></li><li><a class="tab icon-download" href="http://freemarker.org/freemarkerdownload.html" title="Download"><span>Download</span></a></li></ul></div></div><div class="header-bottom-bg"><div class="site-width search-row"><a href="index.html" class="navigation-header">Manual</a><div class="navigation-header"></div><form method="get" class="search-form" action="search-results.html"><fieldset><legend class="sr-only">Search form</legend><label for="search-field" class="sr-only">Search query</label><input id="searc
h-field" name="q" type="search" class="search-input" placeholder="Search" spellcheck="false" autocorrect="off" autocomplete="off"><button type="submit" class="search-btn"><span class="sr-only">Search</span></button></fieldset></form></div><div class="site-width breadcrumb-row"><ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"><li class="step-0" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="index.html"><span itemprop="name">Apache FreeMarker Manual</span></a></li><li class="step-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app.html"><span itemprop="name">Appendixes</span></a></li><li class="step-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app_versions.html"><span itemprop="name">Version history</span></a></li><li class="step-3" itemprop="itemListEl
ement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="versions_2_01.html"><span itemprop="name">2.01</span></a></li></ul><div class="bookmarks" title="Bookmarks"><span class="sr-only">Bookmarks:</span><ul class="bookmark-list"><li><a href="alphaidx.html">Alpha. index</a></li><li><a href="gloss.html">Glossary</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions</a></li><li><a href="ref_builtins_alphaidx.html">?builtins</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_specvar.html">.spec_vars</a></li><li><a href="app_faq.html">FAQ</a></li></ul></div></div></div> <div class="main-content site-width">
+ <div class="content-wrapper">
+ <div id="table-of-contents-wrapper" class="col-left">
+ <script>var breadcrumb = ["Apache FreeMarker Manual","Appendixes","Version history","2.01"];</script>
+ <script src="toc.js?1489402528979"></script>
+ <script src="docgen-resources/main.min.js?1489402528979"></script>
+ </div>
+<div class="col-right"><div class="page-content"><div class="page-title"><div class="pagers top"><a class="paging-arrow previous" href="versions_2_1.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0.html"><span>Next</span></a></div><div class="title-wrapper">
+<h1 class="content-header header-section1" id="versions_2_01" itemprop="headline">2.01</h1>
+</div></div><p>The main improvement is in error reporting. Now exceptions are
+ much more informative since they come with complete line number and
+ column information.</p><p>The only API change between 2.0 and 2.01 was the elimination of
+ the CacheListener/CacheEvent API. Now, if the updating of a template
+ file fails, the exception is thrown back to the caller to handle. If
+ you want logging to occur when a template file is updated
+ successfully, you can override the logFileUpdate() method in
+ FileTemplateCache.</p><div class="bottom-pagers-wrapper"><div class="pagers bottom"><a class="paging-arrow previous" href="versions_2_1.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0.html"><span>Next</span></a></div></div></div></div> </div>
+ </div>
+<div class="site-footer"><div class="site-width"><div class="footer-top"><div class="col-left sitemap"><div class="column"><h3 class="column-header">Overview</h3><ul><li><a href="http://freemarker.org/">What is FreeMarker?</a></li><li><a href="http://freemarker.org/freemarkerdownload.html">Download</a></li><li><a href="app_versions.html">Version history</a></li><li><a href="http://freemarker.org/history.html">About us</a></li><li><a itemprop="license" href="app_license.html">License</a></li></ul></div><div class="column"><h3 class="column-header">Handy stuff</h3><ul><li><a href="http://freemarker-online.kenshoo.com/">Try template online</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions cheatsheet</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_builtins_alphaidx.html">?built_ins</a></li><li><a href="ref_specvar.html">.special_vars</a></li></ul></div><div class="column"><h3 class="column-header">Community</h3><ul><li><a href
="https://github.com/freemarker/freemarker">FreeMarker on Github</a></li><li><a href="https://twitter.com/freemarker">Follow us on Twitter</a></li><li><a href="https://issues.apache.org/jira/browse/FREEMARKER/">Report a bug</a></li><li><a href="http://stackoverflow.com/questions/ask?tags=freemarker">Ask a question</a></li><li><a href="http://freemarker.org/mailing-lists.html">Mailing lists</a></li></ul></div></div><div class="col-right"><ul class="social-icons"><li><a class="github" href="https://github.com/freemarker/freemarker">Github</a></li><li><a class="twitter" href="https://twitter.com/freemarker">Twitter</a></li><li><a class="stack-overflow" href="http://stackoverflow.com/questions/ask?tags=freemarker">Stack Overflow</a></li></ul><a class="xxe" href="http://www.xmlmind.com/xmleditor/" rel="nofollow" title="Edited with XMLMind XML Editor"><span>Edited with XMLMind XML Editor</span></a></div></div><div class="footer-bottom"> <p class="last-generated">
+Last generated:
+<time itemprop="dateModified" datetime="2017-03-13T10:55:28Z" title="Monday, March 13, 2017 10:55:28 AM GMT">2017-03-13 10:55:28 GMT</time>, for Freemarker 2.3.26 </p>
+<p class="copyright">
+� <span itemprop="copyrightYear">1999</span>\u20132017
+<a itemtype="http://schema.org/Organization" itemprop="copyrightHolder" href="http://apache.org/">The Apache Software Foundation</a>. Apache FreeMarker, FreeMarker, Apache Incubator, Apache, the Apache FreeMarker logo are trademarks of The Apache Software Foundation. </p>
+</div></div></div></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/52c070a9/builds/2.3.26-nightly/versions_2_0RC1.html
----------------------------------------------------------------------
diff --git a/builds/2.3.26-nightly/versions_2_0RC1.html b/builds/2.3.26-nightly/versions_2_0RC1.html
new file mode 100644
index 0000000..c6de54a
--- /dev/null
+++ b/builds/2.3.26-nightly/versions_2_0RC1.html
@@ -0,0 +1,268 @@
+<!doctype html>
+<!-- Generated by FreeMarker/Docgen from DocBook -->
+<html lang="en" class="page-type-section">
+<head prefix="og: http://ogp.me/ns#">
+<meta charset="utf-8">
+<title>2.0 RC1 - Apache FreeMarker Manual</title>
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<meta name="format-detection" content="telephone=no">
+<meta property="og:site_name" content="Apache FreeMarker Manual">
+<meta property="og:title" content="2.0 RC1">
+<meta property="og:locale" content="en_US">
+<meta property="og:url" content="http://freemarker.org/docs/versions_2_0RC1.html">
+<link rel="canonical" href="http://freemarker.org/docs/versions_2_0RC1.html">
+<link rel="icon" href="favicon.png" type="image/png">
+<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:500,700,400,300|Droid+Sans+Mono">
+<link rel="stylesheet" type="text/css" href="docgen-resources/docgen.min.css?1489402528979">
+<script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ga('create', 'UA-55420501-1', 'auto');
+ga('send', 'pageview');
+</script>
+</head>
+<body itemscope itemtype="https://schema.org/Code">
+ <meta itemprop="url" content="http://freemarker.org/docs/">
+ <meta itemprop="name" content="Apache FreeMarker Manual">
+
+ <!--[if lte IE 9]>
+ <div style="background-color: #C00; color: #fff; padding: 12px 24px;">Please use a modern browser to view this website.</div>
+ <![endif]--><div class="header-top-bg"><div class="site-width header-top"><a class="logo" href="http://freemarker.org" role="banner"> <img itemprop="image" src="logo.png" alt="FreeMarker">
+</a><ul class="tabs"><li><a href="http://freemarker.org/">Home</a></li><li class="current"><a href="index.html">Manual</a></li><li><a class="external" href="api/index.html">Java API</a></li></ul><ul class="secondary-tabs"><li><a class="tab icon-heart" href="http://freemarker.org/contribute.html" title="Contribute"><span>Contribute</span></a></li><li><a class="tab icon-bug" href="https://issues.apache.org/jira/browse/FREEMARKER/" title="Report a Bug"><span>Report a Bug</span></a></li><li><a class="tab icon-download" href="http://freemarker.org/freemarkerdownload.html" title="Download"><span>Download</span></a></li></ul></div></div><div class="header-bottom-bg"><div class="site-width search-row"><a href="index.html" class="navigation-header">Manual</a><div class="navigation-header"></div><form method="get" class="search-form" action="search-results.html"><fieldset><legend class="sr-only">Search form</legend><label for="search-field" class="sr-only">Search query</label><input id="searc
h-field" name="q" type="search" class="search-input" placeholder="Search" spellcheck="false" autocorrect="off" autocomplete="off"><button type="submit" class="search-btn"><span class="sr-only">Search</span></button></fieldset></form></div><div class="site-width breadcrumb-row"><ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"><li class="step-0" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="index.html"><span itemprop="name">Apache FreeMarker Manual</span></a></li><li class="step-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app.html"><span itemprop="name">Appendixes</span></a></li><li class="step-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app_versions.html"><span itemprop="name">Version history</span></a></li><li class="step-3" itemprop="itemListEl
ement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="versions_2_0RC1.html"><span itemprop="name">2.0 RC1</span></a></li></ul><div class="bookmarks" title="Bookmarks"><span class="sr-only">Bookmarks:</span><ul class="bookmark-list"><li><a href="alphaidx.html">Alpha. index</a></li><li><a href="gloss.html">Glossary</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions</a></li><li><a href="ref_builtins_alphaidx.html">?builtins</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_specvar.html">.spec_vars</a></li><li><a href="app_faq.html">FAQ</a></li></ul></div></div></div> <div class="main-content site-width">
+ <div class="content-wrapper">
+ <div id="table-of-contents-wrapper" class="col-left">
+ <script>var breadcrumb = ["Apache FreeMarker Manual","Appendixes","Version history","2.0 RC1"];</script>
+ <script src="toc.js?1489402528979"></script>
+ <script src="docgen-resources/main.min.js?1489402528979"></script>
+ </div>
+<div class="col-right"><div class="page-content"><div class="page-title"><div class="pagers top"><a class="paging-arrow previous" href="versions_2_0RC2.html"><span>Previous</span></a><a class="paging-arrow next" href="app_install.html"><span>Next</span></a></div><div class="title-wrapper">
+<h1 class="content-header header-section1" id="versions_2_0RC1" itemprop="headline">2.0 RC1</h1>
+</div></div><div class="page-menu">
+<div class="page-menu-title">Page Contents</div>
+<ul><li><a class="page-menu-link" href="#autoid_290" data-menu-target="autoid_290">Support for Numerical operations, both arithmetic and
+boolean, as well as numerical ranges.</a></li><li><a class="page-menu-link" href="#autoid_291" data-menu-target="autoid_291">API Changes</a></li><li><a class="page-menu-link" href="#autoid_292" data-menu-target="autoid_292">Syntactical Miscellany</a></li></ul> </div><p>The first public release of FreeMarker 2.0 was on 18 March 2002.
+ Here is a summary of the changes in the Lazarus release, with respect
+ to the last stable release of FreeMarker Classic.</p><p><em>NOTA BENE</em>:</p><p>Despite the changes delineated above, the Lazarus release is
+ almost entirely backward-compatible with FreeMarker Classic. We
+ believe that <em>most</em> existing code and templates
+ that work under FreeMarker Classic will continue working under
+ Lazarus, with at most minimal changes. In practice, the most common
+ cases where legacy template code is broken will be where assumptions
+ were made about numbers and strings being equivalent. Note that in
+ FreeMarker 2, 2 + 2 does not result in "22". The String "1" and the
+ number 1 are entirely different animals and thus, any code will be
+ broken if it relies on the boolean expression ("1"==1) being true.
+ There is a "classic compatibility mode" that can be set via:
+ <code class="inline-code">Template.setClassCompatibility()</code> that can be set so
+ that Lazarus emulates some of the quirky behavior of FreeMarker
+ Classic. However, any code that relied on the above "features" of
+ FreeMarker classic really should be reworked. You are less likely to
+ run into the other incompatibilities that are listed above. If you
+ come across any other anomalies, please do tell us about them.</p>
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_290">Support for Numerical operations, both arithmetic and
+ boolean, as well as numerical ranges.</h2>
+
+
+ <ul>
+ <li>
+ <p>Scalars can now be either strings or numbers. (In
+ FreeMarker Classic all scalars were strings.) The basic
+ operations allowed are addition, subtraction, multiplication,
+ division, and modulus using the <code class="inline-code">+</code>,
+ <code class="inline-code">-</code>, <code class="inline-code">*</code>,
+ <code class="inline-code">/</code>, and <code class="inline-code">%</code> operators
+ respectively. Arbitrary-precision arithmetic with integers and
+ floating point numbers are provided. Though our goal is
+ definitely to follow the principle of least surprise, for
+ backward compatibility, the <code class="inline-code">+</code> operator still
+ is used for string concatenation. If either the left hand side
+ or the right hand side of <code class="inline-code">lhs + rhs</code> is
+ non-numerical, we revert to interpreting this as string
+ concatenation. Thus, in FreeMarker 2, 2+2 evaluates to the
+ number 4, while any of "2"+2 or 2+"2" or "2"+"2" evaluate to the
+ string "22". In FreeMarker Classic, rather embarrassingly, all
+ of the above, including 2+2, evaluated to the string "22". An
+ attempt to use any other arithmetic operator besides the
+ <code class="inline-code">+</code> with non-numerical operands will cause an
+ exception to be thrown.</p>
+ </li>
+
+ <li>
+ <p>Output of a numerical expression can be made explicit via
+ the alternative <code class="inline-code">#{....}</code> syntax. If the
+ expression within the curly parentheses does not evaluate to a
+ numerical value, an exception is thrown. The older ${....}
+ syntax can evaluate to either a number or a string. In general,
+ if, for logical reasons, the output <em>must</em> be
+ numerical, it is preferable to use the #{...} syntax, since it
+ adds an extra sanity check. Note that if, by some miracle, the
+ character sequence "#{" occurs in your template, you will have
+ to use a workaround to prevent problems. (The <noparse>
+ directive is one possibility.)</p>
+ </li>
+
+ <li>
+ <p>In this release, there is a facility for specifying the
+ number of digits to show after the decimal point. The following
+ code specifies to show at least 3 digits after the decimal point
+ but not more than 6. This is optional. This option is only
+ available if you use the #{...} syntax.</p>
+
+
+
+<div class="code-wrapper"><pre class="code-block code-template">#{foo + bar ; m3M6} </pre></div>
+
+ <p>(Note that the above is something of a stopgap measure.
+ Future releases will move toward supporting fully
+ internationalization and localization of number and currency
+ formatting.</p>
+ </li>
+
+ <li>
+ <p>Numerical expressions can be used in boolean expressions
+ via the comparison operators: <code class="inline-code">lt</code>,
+ <code class="inline-code">gt</code>, <code class="inline-code">lte</code>, and
+ <code class="inline-code">gte</code>. In the web space, where FreeMarker is
+ most used in practice, using the more natural operators such as
+ < and > would tend to confuse HTML-oriented editors. An
+ attempt to compare non-numerical expressions using these
+ operators leads to a <code class="inline-code">TemplateException</code> being
+ thrown. If, by some coincidence, you have variables named "lt",
+ "gt", "lte", or "gte", you will have to change their names,
+ since they are now keywords in the language.</p>
+ </li>
+
+ <li>
+ <p>Numerical ranges are supported.</p>
+
+
+
+<div class="code-wrapper"><pre class="code-block code-template"><#list 1990..2001 as year>
+ blah blah in the year ${year} blah
+</#list> </pre></div>
+
+ <p>The left hand and right hand sides of the
+ <code class="inline-code">..</code> operator must be numerical, or an
+ exception is thrown. They also need not be literal numbers, but
+ can be more complex expressions that evaluate to a numerical
+ scalar value. Note that it is also possible to write a range
+ that descends in value:</p>
+
+
+
+<div class="code-wrapper"><pre class="code-block code-template"><#list 2001..1990 as year>
+ blah blah in the year ${year} blah blah
+</#list> </pre></div>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_291">API Changes</h2>
+
+
+ <ul>
+ <li>
+ <p>The <code class="inline-code">TemplateNumberModel</code> interface and
+ the <code class="inline-code">SimpleNumber</code> implementation were added to
+ support exposing numerical values.</p>
+ </li>
+
+ <li>
+ <p>The <code class="inline-code">TemplateListModel</code> API in FreeMarker
+ Classic had some design problems -- particularly in terms of
+ supporting thread-safe code. It has been deprecated in favor of
+ the following API's: <code class="inline-code">TemplateCollectionModel</code>
+ and <code class="inline-code">TemplateSequenceModel</code>. The
+ <code class="inline-code">SimpleList</code> class was refactored to implement
+ the above interfaces (and paradoxically, does not implement the
+ TemplateListModel interface.) Code that uses the deprecated
+ <code class="inline-code">TemplateListModel</code> should be
+ refactored.</p>
+ </li>
+
+ <li>
+ <p>The Expose Package by Attila Szegedi has been made an
+ integral part of the FreeMarker distribution and is now under
+ the freemarker.ext.* hierarchy. This package provides advanced
+ models for representing arbitrary Java objects as template
+ models, for representing XML documents as template models, as
+ well as classes to facilitate the integration of FreeMarker with
+ servlets and Ant.</p>
+ </li>
+
+ <li>
+ <p>In FreeMarker Classic, there were some utility classes
+ such as <code class="inline-code">freemarker.template.utility.Addition</code>
+ etcetera that existed as workarounds for the lack of numerical
+ operations in FreeMarker. Those have been removed and will
+ probably not be missed.</p>
+ </li>
+
+ <li>
+ <p>In FreeMarker Classic, the <code class="inline-code">SimpleScalar</code>
+ object was mutable, it had a <code class="inline-code">setValue</code> method.
+ This was fairly obviously a design mistake. Any code that relied
+ on this must be refactored. Note that in this release, both
+ <code class="inline-code">SimpleScalar</code> and the newly introduced
+ <code class="inline-code">SimpleNumber</code> are both immutable and
+ final.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_292">Syntactical Miscellany</h2>
+
+
+ <ul>
+ <li>
+ <p>The if-elseif-else syntax was introduced. FreeMarker
+ classic only had if-else. This construct should probably (in the
+ opinion of the author of this document -- Revusky) be used in
+ preference to switch-case since the switch-case with
+ fall-through is a notoriously error-prone construct for most
+ mortal men.</p>
+ </li>
+
+ <li>
+ <p>You can now do a multiple assignment in one
+ <assign...> directive. For example: <code class="inline-code"><assign x
+ = 1, y = price*items, message="foo"></code></p>
+ </li>
+
+ <li>
+ <p>A scalar will no longer be interpreted as a one-item list
+ in a <list...> or <#foreach...> block. If you have
+ code that relied on this feature, there is an easy workaround,
+ since you can simply define a list literal with exactly one
+ item.</p>
+
+
+
+<div class="code-wrapper"><pre class="code-block code-template"> <assign y=[x]>
+ <strong>and then...</strong>
+ <list y as item>...</list> </pre></div>
+ </li>
+ </ul>
+ <div class="bottom-pagers-wrapper"><div class="pagers bottom"><a class="paging-arrow previous" href="versions_2_0RC2.html"><span>Previous</span></a><a class="paging-arrow next" href="app_install.html"><span>Next</span></a></div></div></div></div> </div>
+ </div>
+<div class="site-footer"><div class="site-width"><div class="footer-top"><div class="col-left sitemap"><div class="column"><h3 class="column-header">Overview</h3><ul><li><a href="http://freemarker.org/">What is FreeMarker?</a></li><li><a href="http://freemarker.org/freemarkerdownload.html">Download</a></li><li><a href="app_versions.html">Version history</a></li><li><a href="http://freemarker.org/history.html">About us</a></li><li><a itemprop="license" href="app_license.html">License</a></li></ul></div><div class="column"><h3 class="column-header">Handy stuff</h3><ul><li><a href="http://freemarker-online.kenshoo.com/">Try template online</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions cheatsheet</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_builtins_alphaidx.html">?built_ins</a></li><li><a href="ref_specvar.html">.special_vars</a></li></ul></div><div class="column"><h3 class="column-header">Community</h3><ul><li><a href
="https://github.com/freemarker/freemarker">FreeMarker on Github</a></li><li><a href="https://twitter.com/freemarker">Follow us on Twitter</a></li><li><a href="https://issues.apache.org/jira/browse/FREEMARKER/">Report a bug</a></li><li><a href="http://stackoverflow.com/questions/ask?tags=freemarker">Ask a question</a></li><li><a href="http://freemarker.org/mailing-lists.html">Mailing lists</a></li></ul></div></div><div class="col-right"><ul class="social-icons"><li><a class="github" href="https://github.com/freemarker/freemarker">Github</a></li><li><a class="twitter" href="https://twitter.com/freemarker">Twitter</a></li><li><a class="stack-overflow" href="http://stackoverflow.com/questions/ask?tags=freemarker">Stack Overflow</a></li></ul><a class="xxe" href="http://www.xmlmind.com/xmleditor/" rel="nofollow" title="Edited with XMLMind XML Editor"><span>Edited with XMLMind XML Editor</span></a></div></div><div class="footer-bottom"> <p class="last-generated">
+Last generated:
+<time itemprop="dateModified" datetime="2017-03-13T10:55:28Z" title="Monday, March 13, 2017 10:55:28 AM GMT">2017-03-13 10:55:28 GMT</time>, for Freemarker 2.3.26 </p>
+<p class="copyright">
+� <span itemprop="copyrightYear">1999</span>\u20132017
+<a itemtype="http://schema.org/Organization" itemprop="copyrightHolder" href="http://apache.org/">The Apache Software Foundation</a>. Apache FreeMarker, FreeMarker, Apache Incubator, Apache, the Apache FreeMarker logo are trademarks of The Apache Software Foundation. </p>
+</div></div></div></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/52c070a9/builds/2.3.26-nightly/versions_2_0RC2.html
----------------------------------------------------------------------
diff --git a/builds/2.3.26-nightly/versions_2_0RC2.html b/builds/2.3.26-nightly/versions_2_0RC2.html
new file mode 100644
index 0000000..618427e
--- /dev/null
+++ b/builds/2.3.26-nightly/versions_2_0RC2.html
@@ -0,0 +1,219 @@
+<!doctype html>
+<!-- Generated by FreeMarker/Docgen from DocBook -->
+<html lang="en" class="page-type-section">
+<head prefix="og: http://ogp.me/ns#">
+<meta charset="utf-8">
+<title>2.0 RC2 - Apache FreeMarker Manual</title>
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<meta name="format-detection" content="telephone=no">
+<meta property="og:site_name" content="Apache FreeMarker Manual">
+<meta property="og:title" content="2.0 RC2">
+<meta property="og:locale" content="en_US">
+<meta property="og:url" content="http://freemarker.org/docs/versions_2_0RC2.html">
+<link rel="canonical" href="http://freemarker.org/docs/versions_2_0RC2.html">
+<link rel="icon" href="favicon.png" type="image/png">
+<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:500,700,400,300|Droid+Sans+Mono">
+<link rel="stylesheet" type="text/css" href="docgen-resources/docgen.min.css?1489402528979">
+<script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ga('create', 'UA-55420501-1', 'auto');
+ga('send', 'pageview');
+</script>
+</head>
+<body itemscope itemtype="https://schema.org/Code">
+ <meta itemprop="url" content="http://freemarker.org/docs/">
+ <meta itemprop="name" content="Apache FreeMarker Manual">
+
+ <!--[if lte IE 9]>
+ <div style="background-color: #C00; color: #fff; padding: 12px 24px;">Please use a modern browser to view this website.</div>
+ <![endif]--><div class="header-top-bg"><div class="site-width header-top"><a class="logo" href="http://freemarker.org" role="banner"> <img itemprop="image" src="logo.png" alt="FreeMarker">
+</a><ul class="tabs"><li><a href="http://freemarker.org/">Home</a></li><li class="current"><a href="index.html">Manual</a></li><li><a class="external" href="api/index.html">Java API</a></li></ul><ul class="secondary-tabs"><li><a class="tab icon-heart" href="http://freemarker.org/contribute.html" title="Contribute"><span>Contribute</span></a></li><li><a class="tab icon-bug" href="https://issues.apache.org/jira/browse/FREEMARKER/" title="Report a Bug"><span>Report a Bug</span></a></li><li><a class="tab icon-download" href="http://freemarker.org/freemarkerdownload.html" title="Download"><span>Download</span></a></li></ul></div></div><div class="header-bottom-bg"><div class="site-width search-row"><a href="index.html" class="navigation-header">Manual</a><div class="navigation-header"></div><form method="get" class="search-form" action="search-results.html"><fieldset><legend class="sr-only">Search form</legend><label for="search-field" class="sr-only">Search query</label><input id="searc
h-field" name="q" type="search" class="search-input" placeholder="Search" spellcheck="false" autocorrect="off" autocomplete="off"><button type="submit" class="search-btn"><span class="sr-only">Search</span></button></fieldset></form></div><div class="site-width breadcrumb-row"><ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"><li class="step-0" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="index.html"><span itemprop="name">Apache FreeMarker Manual</span></a></li><li class="step-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app.html"><span itemprop="name">Appendixes</span></a></li><li class="step-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app_versions.html"><span itemprop="name">Version history</span></a></li><li class="step-3" itemprop="itemListEl
ement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="versions_2_0RC2.html"><span itemprop="name">2.0 RC2</span></a></li></ul><div class="bookmarks" title="Bookmarks"><span class="sr-only">Bookmarks:</span><ul class="bookmark-list"><li><a href="alphaidx.html">Alpha. index</a></li><li><a href="gloss.html">Glossary</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions</a></li><li><a href="ref_builtins_alphaidx.html">?builtins</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_specvar.html">.spec_vars</a></li><li><a href="app_faq.html">FAQ</a></li></ul></div></div></div> <div class="main-content site-width">
+ <div class="content-wrapper">
+ <div id="table-of-contents-wrapper" class="col-left">
+ <script>var breadcrumb = ["Apache FreeMarker Manual","Appendixes","Version history","2.0 RC2"];</script>
+ <script src="toc.js?1489402528979"></script>
+ <script src="docgen-resources/main.min.js?1489402528979"></script>
+ </div>
+<div class="col-right"><div class="page-content"><div class="page-title"><div class="pagers top"><a class="paging-arrow previous" href="versions_2_0RC3.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0RC1.html"><span>Next</span></a></div><div class="title-wrapper">
+<h1 class="content-header header-section1" id="versions_2_0RC2" itemprop="headline">2.0 RC2</h1>
+</div></div><div class="page-menu">
+<div class="page-menu-title">Page Contents</div>
+<ul><li><a class="page-menu-link" href="#autoid_288" data-menu-target="autoid_288">Changes to Template Language</a></li><li><a class="page-menu-link" href="#autoid_289" data-menu-target="autoid_289">API Changes</a></li></ul> </div><p>FreeMarker 2.0 RC 2 was released on 4 April 2002. Here is a
+ summary of changes wrt to the first release.</p>
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_288">Changes to Template Language</h2>
+
+
+ <ul>
+ <li>
+ <p>Certain built-in functionality is provided via a new
+ operator, '?'. Thus, <code class="inline-code">myList?size</code> provides the
+ number of elements in a list. Similarly,
+ <code class="inline-code">myString?length</code> provides the length of a
+ string, <code class="inline-code">myString?upper_case</code> puts the string
+ all in capital letters, and <code class="inline-code">myHash?keys</code>
+ provides a sequence containing the keys in the hash. See <a href="ref_builtins.html">Template Language Reference/Built-in Reference</a> for list of all available
+ built-ins.</p>
+ </li>
+
+ <li>
+ <p>Numerical comparisons can now be made using the "natural"
+ operators < and > but there are also "web-safe"
+ alternatives, such as <em>\lt</em> and
+ <em>\gt</em>, since the use of these characters may
+ confuse HTML editors and parsers. Note that these changed
+ between rc1 and rc2, they now start with a backslash. A little
+ asymmetry is the fact that if you use the natural greater-than
+ or greater-than-or-equals operators (i.e. > or >=) the
+ expression must be in parentheses. With any other operator, the
+ parentheses are optional.</p>
+ </li>
+
+ <li>
+ <p>Within an iteration loop -- i.e. a
+ <code class="inline-code">foreach</code> or a <code class="inline-code">list</code> block --
+ the current count in the loop is available as the special
+ variable
+ <code class="inline-code"><em class="code-color">index</em>_count</code>. where
+ <em>index</em> is the name of the variable in
+ the iteration. A boolean variable called
+ <code class="inline-code"><em class="code-color">index</em>_has_next</code> is
+ also defined that indicates whether there are any more items in
+ the iteration after this one. Note that the index starts at
+ zero, so you will often be adding one to it in practice.</p>
+ </li>
+
+ <li>
+ <p>The <code class="inline-code"><#break></code> directive can now be
+ used to break out of a <code class="inline-code"><#foreach...></code> or
+ a <code class="inline-code"><list...></code> loop. (Prior to this
+ version, it only worked within a switch-case block.) There is a
+ new directive called <code class="inline-code"><#stop></code> that, when
+ encountered, simply halts processing of the template. This can
+ be useful for debugging purposes.</p>
+ </li>
+
+ <li>
+ <p>When invoking java methods that have been exposed to the
+ page, using the code in freemarker.ext.*, there are built-ins
+ that allow you to indicate the numerical type that you wish to
+ pass as the value. For instance, if you had two methods, one
+ that takes an int and another that takes a long, and you wanted
+ to pass in a value, you would have to specify which method.
+ <code class="inline-code">myMethod(1?int)</code> or
+ <code class="inline-code">myMethod(1?long)</code>. This is unnecessary if
+ there is only one method of the given name.</p>
+ </li>
+
+ <li>
+ <p>Ranges can be used to get the sublist from a list or the
+ substring of a string. For example:
+ <code class="inline-code">myList[0..3]</code> will return items 0 through 3 of
+ the list in question. Or, for example, you could get all the
+ elements of the list except for the first and last ones via:
+ <code class="inline-code">myList[1..(myList?size-2)]</code></p>
+ </li>
+
+ <li>
+ <p>Or we could get the first 6 characters of a string via
+ <code class="inline-code">myString[0..5]</code></p>
+ </li>
+
+ <li>
+ <p>Lists can be concatenated using the '+' operator.
+ Previously, this overloading of '+' only applied to
+ strings.</p>
+ </li>
+
+ <li>
+ <p>An attempt to compare a number to a string now throws an
+ exception, since it is indicative of a coding error. Note that
+ there is a backward compatibility mode that can be set (see
+ below) that loosens this up in order to be able to process
+ legacy templates.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_289">API Changes</h2>
+
+
+ <ul>
+ <li>
+ <p>The <code class="inline-code">TemplateSequenceModel</code> interface now
+ has a <code class="inline-code">size()</code> method for getting the number of
+ elements in the sequence in question.</p>
+ </li>
+
+ <li>
+ <p>The <code class="inline-code">TemplateModelIterator</code> interface now
+ has a <code class="inline-code">hasNext()</code> method.</p>
+ </li>
+
+ <li>
+ <p>The default sequence and hash implementations,
+ <code class="inline-code">freemarker.template.SimpleSequence</code> and
+ <code class="inline-code">freemarker.template.SimpleHash</code> are now
+ unsynchronized. If you need the methods to be synchronized, you
+ can get a synchronized wrapper via the
+ <code class="inline-code">synchronizedWrapper()</code> in either class.</p>
+ </li>
+
+ <li>
+ <p>The <code class="inline-code">freemarker.utility.ExtendedList</code> and
+ <code class="inline-code">freemarker.utility.ExtendedHash</code> classes were
+ removed, since all of the extra keys that it defined are now
+ available using the appropriate '?' built-in operation, i.e.
+ <code class="inline-code">myHash?keys</code> or <code class="inline-code">myList?size</code>
+ or <code class="inline-code">myList?last</code>.</p>
+ </li>
+
+ <li>
+ <p>There is a method in
+ <code class="inline-code">java.freemarker.Configuration</code> named
+ <code class="inline-code">setDebugMode()</code> which allows you to decide
+ whether stack traces are simply output to the web client (the
+ best situation in development) or thrown back to the caller to
+ be handled more gracefully (the best situation in
+ production).</p>
+ </li>
+
+ <li>
+ <p>There is a flag that can be set to turn on a processing
+ mode that is more backward-compatible with FreeMarker Classic.
+ This is off by default, but you can set it via
+ <code class="inline-code">Template.setClassicCompatibility(true)</code>. What
+ this does is that it allows scalars to be treated as a
+ single-item list in a list directive. Also, it allows somewhat
+ more looseness about types. In FreeMarker 1.x, <code class="inline-code"><#if
+ x=="1"></code> and <code class="inline-code"><#if x==1></code>
+ were in fact equivalent. This meant that legacy templates might
+ tend to be slack about this. If classic compatibility is not
+ set, an attempt to compare the string "1" with the number 1 will
+ result in an exception being thrown. (Note that it is preferable
+ to get your templates working without the backward compatibility
+ flag, since it usually will require only minor changes. However,
+ for people with a lot of templates and no time to check over
+ them, this flag may be of use.)</p>
+ </li>
+ </ul>
+ <div class="bottom-pagers-wrapper"><div class="pagers bottom"><a class="paging-arrow previous" href="versions_2_0RC3.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0RC1.html"><span>Next</span></a></div></div></div></div> </div>
+ </div>
+<div class="site-footer"><div class="site-width"><div class="footer-top"><div class="col-left sitemap"><div class="column"><h3 class="column-header">Overview</h3><ul><li><a href="http://freemarker.org/">What is FreeMarker?</a></li><li><a href="http://freemarker.org/freemarkerdownload.html">Download</a></li><li><a href="app_versions.html">Version history</a></li><li><a href="http://freemarker.org/history.html">About us</a></li><li><a itemprop="license" href="app_license.html">License</a></li></ul></div><div class="column"><h3 class="column-header">Handy stuff</h3><ul><li><a href="http://freemarker-online.kenshoo.com/">Try template online</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions cheatsheet</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_builtins_alphaidx.html">?built_ins</a></li><li><a href="ref_specvar.html">.special_vars</a></li></ul></div><div class="column"><h3 class="column-header">Community</h3><ul><li><a href
="https://github.com/freemarker/freemarker">FreeMarker on Github</a></li><li><a href="https://twitter.com/freemarker">Follow us on Twitter</a></li><li><a href="https://issues.apache.org/jira/browse/FREEMARKER/">Report a bug</a></li><li><a href="http://stackoverflow.com/questions/ask?tags=freemarker">Ask a question</a></li><li><a href="http://freemarker.org/mailing-lists.html">Mailing lists</a></li></ul></div></div><div class="col-right"><ul class="social-icons"><li><a class="github" href="https://github.com/freemarker/freemarker">Github</a></li><li><a class="twitter" href="https://twitter.com/freemarker">Twitter</a></li><li><a class="stack-overflow" href="http://stackoverflow.com/questions/ask?tags=freemarker">Stack Overflow</a></li></ul><a class="xxe" href="http://www.xmlmind.com/xmleditor/" rel="nofollow" title="Edited with XMLMind XML Editor"><span>Edited with XMLMind XML Editor</span></a></div></div><div class="footer-bottom"> <p class="last-generated">
+Last generated:
+<time itemprop="dateModified" datetime="2017-03-13T10:55:28Z" title="Monday, March 13, 2017 10:55:28 AM GMT">2017-03-13 10:55:28 GMT</time>, for Freemarker 2.3.26 </p>
+<p class="copyright">
+� <span itemprop="copyrightYear">1999</span>\u20132017
+<a itemtype="http://schema.org/Organization" itemprop="copyrightHolder" href="http://apache.org/">The Apache Software Foundation</a>. Apache FreeMarker, FreeMarker, Apache Incubator, Apache, the Apache FreeMarker logo are trademarks of The Apache Software Foundation. </p>
+</div></div></div></body>
+</html>
http://git-wip-us.apache.org/repos/asf/incubator-freemarker-site/blob/52c070a9/builds/2.3.26-nightly/versions_2_0RC3.html
----------------------------------------------------------------------
diff --git a/builds/2.3.26-nightly/versions_2_0RC3.html b/builds/2.3.26-nightly/versions_2_0RC3.html
new file mode 100644
index 0000000..a378259
--- /dev/null
+++ b/builds/2.3.26-nightly/versions_2_0RC3.html
@@ -0,0 +1,138 @@
+<!doctype html>
+<!-- Generated by FreeMarker/Docgen from DocBook -->
+<html lang="en" class="page-type-section">
+<head prefix="og: http://ogp.me/ns#">
+<meta charset="utf-8">
+<title>2.0 RC3 - Apache FreeMarker Manual</title>
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<meta name="format-detection" content="telephone=no">
+<meta property="og:site_name" content="Apache FreeMarker Manual">
+<meta property="og:title" content="2.0 RC3">
+<meta property="og:locale" content="en_US">
+<meta property="og:url" content="http://freemarker.org/docs/versions_2_0RC3.html">
+<link rel="canonical" href="http://freemarker.org/docs/versions_2_0RC3.html">
+<link rel="icon" href="favicon.png" type="image/png">
+<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:500,700,400,300|Droid+Sans+Mono">
+<link rel="stylesheet" type="text/css" href="docgen-resources/docgen.min.css?1489402528979">
+<script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ga('create', 'UA-55420501-1', 'auto');
+ga('send', 'pageview');
+</script>
+</head>
+<body itemscope itemtype="https://schema.org/Code">
+ <meta itemprop="url" content="http://freemarker.org/docs/">
+ <meta itemprop="name" content="Apache FreeMarker Manual">
+
+ <!--[if lte IE 9]>
+ <div style="background-color: #C00; color: #fff; padding: 12px 24px;">Please use a modern browser to view this website.</div>
+ <![endif]--><div class="header-top-bg"><div class="site-width header-top"><a class="logo" href="http://freemarker.org" role="banner"> <img itemprop="image" src="logo.png" alt="FreeMarker">
+</a><ul class="tabs"><li><a href="http://freemarker.org/">Home</a></li><li class="current"><a href="index.html">Manual</a></li><li><a class="external" href="api/index.html">Java API</a></li></ul><ul class="secondary-tabs"><li><a class="tab icon-heart" href="http://freemarker.org/contribute.html" title="Contribute"><span>Contribute</span></a></li><li><a class="tab icon-bug" href="https://issues.apache.org/jira/browse/FREEMARKER/" title="Report a Bug"><span>Report a Bug</span></a></li><li><a class="tab icon-download" href="http://freemarker.org/freemarkerdownload.html" title="Download"><span>Download</span></a></li></ul></div></div><div class="header-bottom-bg"><div class="site-width search-row"><a href="index.html" class="navigation-header">Manual</a><div class="navigation-header"></div><form method="get" class="search-form" action="search-results.html"><fieldset><legend class="sr-only">Search form</legend><label for="search-field" class="sr-only">Search query</label><input id="searc
h-field" name="q" type="search" class="search-input" placeholder="Search" spellcheck="false" autocorrect="off" autocomplete="off"><button type="submit" class="search-btn"><span class="sr-only">Search</span></button></fieldset></form></div><div class="site-width breadcrumb-row"><ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"><li class="step-0" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="index.html"><span itemprop="name">Apache FreeMarker Manual</span></a></li><li class="step-1" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app.html"><span itemprop="name">Appendixes</span></a></li><li class="step-2" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="app_versions.html"><span itemprop="name">Version history</span></a></li><li class="step-3" itemprop="itemListEl
ement" itemscope itemtype="http://schema.org/ListItem"><a class="label" itemprop="item" href="versions_2_0RC3.html"><span itemprop="name">2.0 RC3</span></a></li></ul><div class="bookmarks" title="Bookmarks"><span class="sr-only">Bookmarks:</span><ul class="bookmark-list"><li><a href="alphaidx.html">Alpha. index</a></li><li><a href="gloss.html">Glossary</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions</a></li><li><a href="ref_builtins_alphaidx.html">?builtins</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_specvar.html">.spec_vars</a></li><li><a href="app_faq.html">FAQ</a></li></ul></div></div></div> <div class="main-content site-width">
+ <div class="content-wrapper">
+ <div id="table-of-contents-wrapper" class="col-left">
+ <script>var breadcrumb = ["Apache FreeMarker Manual","Appendixes","Version history","2.0 RC3"];</script>
+ <script src="toc.js?1489402528979"></script>
+ <script src="docgen-resources/main.min.js?1489402528979"></script>
+ </div>
+<div class="col-right"><div class="page-content"><div class="page-title"><div class="pagers top"><a class="paging-arrow previous" href="versions_2_0.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0RC2.html"><span>Next</span></a></div><div class="title-wrapper">
+<h1 class="content-header header-section1" id="versions_2_0RC3" itemprop="headline">2.0 RC3</h1>
+</div></div><div class="page-menu">
+<div class="page-menu-title">Page Contents</div>
+<ul><li><a class="page-menu-link" href="#autoid_285" data-menu-target="autoid_285">Bug Fixes</a></li><li><a class="page-menu-link" href="#autoid_286" data-menu-target="autoid_286">Changes to the Template Language</a></li><li><a class="page-menu-link" href="#autoid_287" data-menu-target="autoid_287">API changes</a></li></ul> </div><p>FreeMarker 2.0 RC3 was released on 11 April 2002. This release
+ was primarily devoted to fixing bugs that were reported in RC2.</p>
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_285">Bug Fixes</h2>
+
+
+ <ul>
+ <li>
+ <p>Variables defined in an <include...> were not
+ available in the enclosing page. This has been fixed.</p>
+ </li>
+
+ <li>
+ <p>The JavaCC parser was not configured to handle Unicode
+ input correctly. Now, Unicode support is working.</p>
+ </li>
+
+ <li>
+ <p>There was a bug when comparing a number with null. It
+ should have returned false, but threw an exception instead. This
+ has been fixed.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_286">Changes to the Template Language</h2>
+
+
+ <ul>
+ <li>
+ <p>The syntax of the include directive has changed. To
+ indicate an unparsed include file, you do as follows:</p>
+
+
+
+<div class="code-wrapper"><pre class="code-block code-template"><include "included.html" ; parsed="n" ></pre></div>
+
+ <p>You can also indicate the encoding of the included file
+ this way:</p>
+
+
+
+<div class="code-wrapper"><pre class="code-block code-template"> <include "included.html" ; encoding="ISO-8859-5"></pre></div>
+ </li>
+
+ <li>
+ <p>The built-in myString?trim was added for trimming the
+ leading and trailing white-space from strings.</p>
+ </li>
+ </ul>
+
+
+
+
+
+<h2 class="content-header header-section2" id="autoid_287">API changes</h2>
+
+
+ <ul>
+ <li>
+ <p>The TemplateEventAdapter machinery was taken out. This was
+ never set up in a very useful manner and we anticipate that
+ version 2.1 will have more complete support for logging
+ events.</p>
+ </li>
+
+ <li>
+ <p>The template caching mechanism was streamlined and
+ simplified.</p>
+ </li>
+
+ <li>
+ <p>The FileTemplateCache can now be configured to load files
+ relative to a class loader, using the Class.getResource() call.
+ This allows templates to be bundled up in .jar files or in a
+ .war file for easy deployment of web-based apps.</p>
+ </li>
+ </ul>
+ <div class="bottom-pagers-wrapper"><div class="pagers bottom"><a class="paging-arrow previous" href="versions_2_0.html"><span>Previous</span></a><a class="paging-arrow next" href="versions_2_0RC2.html"><span>Next</span></a></div></div></div></div> </div>
+ </div>
+<div class="site-footer"><div class="site-width"><div class="footer-top"><div class="col-left sitemap"><div class="column"><h3 class="column-header">Overview</h3><ul><li><a href="http://freemarker.org/">What is FreeMarker?</a></li><li><a href="http://freemarker.org/freemarkerdownload.html">Download</a></li><li><a href="app_versions.html">Version history</a></li><li><a href="http://freemarker.org/history.html">About us</a></li><li><a itemprop="license" href="app_license.html">License</a></li></ul></div><div class="column"><h3 class="column-header">Handy stuff</h3><ul><li><a href="http://freemarker-online.kenshoo.com/">Try template online</a></li><li><a href="dgui_template_exp.html#exp_cheatsheet">Expressions cheatsheet</a></li><li><a href="ref_directive_alphaidx.html">#directives</a></li><li><a href="ref_builtins_alphaidx.html">?built_ins</a></li><li><a href="ref_specvar.html">.special_vars</a></li></ul></div><div class="column"><h3 class="column-header">Community</h3><ul><li><a href
="https://github.com/freemarker/freemarker">FreeMarker on Github</a></li><li><a href="https://twitter.com/freemarker">Follow us on Twitter</a></li><li><a href="https://issues.apache.org/jira/browse/FREEMARKER/">Report a bug</a></li><li><a href="http://stackoverflow.com/questions/ask?tags=freemarker">Ask a question</a></li><li><a href="http://freemarker.org/mailing-lists.html">Mailing lists</a></li></ul></div></div><div class="col-right"><ul class="social-icons"><li><a class="github" href="https://github.com/freemarker/freemarker">Github</a></li><li><a class="twitter" href="https://twitter.com/freemarker">Twitter</a></li><li><a class="stack-overflow" href="http://stackoverflow.com/questions/ask?tags=freemarker">Stack Overflow</a></li></ul><a class="xxe" href="http://www.xmlmind.com/xmleditor/" rel="nofollow" title="Edited with XMLMind XML Editor"><span>Edited with XMLMind XML Editor</span></a></div></div><div class="footer-bottom"> <p class="last-generated">
+Last generated:
+<time itemprop="dateModified" datetime="2017-03-13T10:55:28Z" title="Monday, March 13, 2017 10:55:28 AM GMT">2017-03-13 10:55:28 GMT</time>, for Freemarker 2.3.26 </p>
+<p class="copyright">
+� <span itemprop="copyrightYear">1999</span>\u20132017
+<a itemtype="http://schema.org/Organization" itemprop="copyrightHolder" href="http://apache.org/">The Apache Software Foundation</a>. Apache FreeMarker, FreeMarker, Apache Incubator, Apache, the Apache FreeMarker logo are trademarks of The Apache Software Foundation. </p>
+</div></div></div></body>
+</html>