I need to template some email texts. Nothing fancy, just replace something like @name@ with real value. No pictures, no fancy formatting etc.
What java lib could you recommend? The simplier the better.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can give Velocity or Freemarker a shot. I’ve used both in email templating engines. They provide simple syntax for basic use cases, but you can get pretty complex later on!
Of the two, I personally prefer Freemarker because they’ve done a really good job of providing all sorts of different builtins that make formatting numbers and text very simple.