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 de_DE (German). Then this:

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

will output this:

1,2
1.2  

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

FreeMarker Manual -- For FreeMarker 2.3.22
HTML generated: 2015-02-28 21:34:03 GMT
Edited with XMLMind XML Editor
Here!