setting

Page Contents

Synopsis

<#setting name=value>

Where:

Description

Sets a setting for the further part of processing. Settings are values that influence the behavior of FreeMarker. The new value will be present only in the template processing where it was set, and does not touch the template itself. The initial value of settings is set by the programmer (see: Programmer's Guide/The Configuration/Settings).

The supported settings are:

Example: Assume that the initial locale of template is hu (Hungarian). Then this:

${1.2}
<#setting locale="en_US">
${1.2}  

will output this:

1,2
1.2  

because Hungarian people use the comma as their decimal separator, while US people use the dot.

FreeMarker Manual -- For FreeMarker 2.3.20
HTML generated: 2013-06-27 20:54:33 GMT
Edited with XMLMind XML Editor
Here!