cancel
Showing results for 
Search instead for 
Did you mean: 

Use of Freemarker interpolations in Nuxeo templates

ron_1
Star Contributor
Star Contributor

Nuxeo 5.6 template files, including server.xml.nxftl, appear to use Freemarker interpolations in ways that violate the warning below extracted from this Freemarker document. If you agree, should I open a JIRA for this issue?

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. <h1>Hello ${name}!</h1>) and in
string literals (e.g. <#include "/footer/${company}.html">). A typical bad usage is 
<#if ${isBig}>Wow!</#if>, which is syntactically WRONG. You should simply write 
<#if isBig>Wow!</#if>. Also, <#if "${isBig}">Wow!</#if> 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.
1 ACCEPTED ANSWER

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hi,

You're right. I created NXP-10484 for that issue.

Thanks,

View answer in original post

1 REPLY 1

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hi,

You're right. I created NXP-10484 for that issue.

Thanks,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.