setting

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.

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.


Page generated: 2006-03-15 13:49:01 GMT FreeMarker Manual -- For FreeMarker 2.3.6