Skip to content
Advertisement

Tag: multilinestring

Simple way templating multiline strings in java code

I’m often run in to the following situation: I have long multiline strings where properties must be injected – e.g. something like templating. But I don’t want to inlcude a complete templating engine (like velocity or freemarker) in my projects. How can this be done in a simple way: Answer You can create your own small & simply template engine

Advertisement