Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- up vote
- 0
- down vote
- favorite
- So simple question, which I simply cannot solve: how to reverse a string using Freemarker?
- I have tried following:
- <#assign reversed = mystring?reverse() />
- But strings does not have reverse method... I've also tried:
- <#assign reversed = mystring?split("")?reverse()?join("") />
- But apparently split("") is not valid freemarker syntax. Is there a way to do this?
Add Comment
Please, Sign In to add comment