How do I format text in Apache FreeMarker?
I would like to add a new formatter that would format the value (taken from json). For example, the text ANIMAL
would be formatted to Animal
(ideally it would also work if the word animal
was lowercase and it would format it to Animal
).
I checked the available built-in functions for strings, but I can't find this particular one. https://freemarker.apache.org/docs/ref_builtins_string.html