Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With Velocity you can have property references and dynamic content in properties, including locale properties (the translations). You can use $render.eval() method to “evaluate” these parts in properties before they are displayed.

Example:

Properties

...

Code Block

...

languagetext
firstname=Sue
subject=Mitä kuuluu ${firstname}?

Template

...

Code Block

...

<h1>
$render.eval($subject)
</h1>

Output

...

Code Block

...

<h1>
Mitä kuuluu Sue?
</h1>

External links:

...