<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Use of Freemarker interpolations in Nuxeo templates in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/use-of-freemarker-interpolations-in-nuxeo-templates/m-p/327630#M14631</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You're right. I created &lt;A href="https://jira.nuxeo.com/browse/NXP-10484"&gt;NXP-10484&lt;/A&gt; for that issue.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2012 18:01:55 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2012-11-15T18:01:55Z</dc:date>
    <item>
      <title>Use of Freemarker interpolations in Nuxeo templates</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-of-freemarker-interpolations-in-nuxeo-templates/m-p/327629#M14630</link>
      <description>&lt;P&gt;Nuxeo 5.6 template files, including server.xml.nxftl, appear to use Freemarker interpolations in ways that violate the warning below extracted from this &lt;A href="http://freemarker.sourceforge.net/docs/dgui_template_exp.html#dgui_template_exp_direct_number"&gt;Freemarker document&lt;/A&gt;. If you agree, should I open a JIRA for this issue?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Warning!

A frequent mistake of users is the usage of interpolations in places where it shouldn't/can't
be used. Interpolations work only in text sections (e.g. &amp;lt;h1&amp;gt;Hello ${name}!&amp;lt;/h1&amp;gt;) and in
string literals (e.g. &amp;lt;#include "/footer/${company}.html"&amp;gt;). A typical bad usage is 
&amp;lt;#if ${isBig}&amp;gt;Wow!&amp;lt;/#if&amp;gt;, which is syntactically WRONG. You should simply write 
&amp;lt;#if isBig&amp;gt;Wow!&amp;lt;/#if&amp;gt;. Also, &amp;lt;#if "${isBig}"&amp;gt;Wow!&amp;lt;/#if&amp;gt; is WRONG too, since the parameter
value will be a string, and the if directive wants a boolean value, so it will cause a 
runtime error.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2012 17:02:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-of-freemarker-interpolations-in-nuxeo-templates/m-p/327629#M14630</guid>
      <dc:creator>ron_1</dc:creator>
      <dc:date>2012-11-15T17:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Freemarker interpolations in Nuxeo templates</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-of-freemarker-interpolations-in-nuxeo-templates/m-p/327630#M14631</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You're right. I created &lt;A href="https://jira.nuxeo.com/browse/NXP-10484"&gt;NXP-10484&lt;/A&gt; for that issue.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 18:01:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-of-freemarker-interpolations-in-nuxeo-templates/m-p/327630#M14631</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-11-15T18:01:55Z</dc:date>
    </item>
  </channel>
</rss>

