Get the message value from ResourceBundle by the key then format with the arguments.
Example:
In resource file : msg=Hello {0}, today is{1}.
In java code : res.format("msg", "james", new Date());
In freemarker template : ${_res.format("msg", "james", new Date())}
The result is : Hello james, today is 2015-04-14.