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.21
HTML generated: 2014-10-12 19:11:24 GMT
Edited with XMLMind XML Editor
Here!