freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [02/13] incubator-freemarker git commit: Hiding the formdatamodel, changes related to fm online redirecting
Date Sun, 08 Jan 2017 21:20:21 GMT
Hiding the formdatamodel, changes related to fm online redirecting


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/51c005ef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/51c005ef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/51c005ef

Branch: refs/heads/2.3-gae
Commit: 51c005ef49c3cde43d3ae1459655add88d3f78ea
Parents: d66cf48
Author: Pradeep <pradeep_murugesan@trimble.com>
Authored: Mon Oct 26 19:23:04 2015 +0530
Committer: Pradeep <pradeep_murugesan@trimble.com>
Committed: Mon Jan 11 17:21:55 2016 +0530

----------------------------------------------------------------------
 src/manual/en_US/book.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/51c005ef/src/manual/en_US/book.xml
----------------------------------------------------------------------
diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml
index 0ea368d..df345c8 100644
--- a/src/manual/en_US/book.xml
+++ b/src/manual/en_US/book.xml
@@ -451,7 +451,10 @@
             that in the <link linkend="example.first">very first
             example</link> you want to greet your boss, Big Joe, differently
             than other users:</para>
-
+              <programlisting role="formDataModel">
+                  user=John
+                  latestProduct = {"url": "https://test.com", "name": "test"}
+              </programlisting>
             <programlisting role="template">&lt;html&gt;
 &lt;head&gt;
   &lt;title&gt;Welcome!&lt;/title&gt;
@@ -464,7 +467,6 @@
   &lt;a href="${latestProduct.url}"&gt;${latestProduct.name}&lt;/a&gt;!
 &lt;/body&gt;
 &lt;/html&gt;</programlisting>
-
             <para>Here you have told FreeMarker that the <quote>, our beloved
             leader</quote> should be there only if the value of the variable
             <literal>user</literal> is equal to the string <literal>"Big


Mime
View raw message