Hmm never heard of template engines. I just looked into it but i think it's a bit too much for my goal isn't it?
–
RobinvdAJun 10 '14 at 13:13

It all depends on how many time you need to render a template. If this is the only place, then a template engine might be a bit much. Updating my answer with another idea.
–
Greg BurghardtJun 10 '14 at 13:16