I have a staff record here and I need to let if go through a function and the function spits out the staff record nicely formatted with HTML tags.
example
staff id = 23422
first name = Herbert
surname = Dominos
department = Purchasing
function output would be something like
<label>staff id</label><div class="some class">23422</div>
<label>First namelabel><div class="some class">Herbert</div>
<label>Surname</label><div class="some class">Dominos</div>
<label>Department</label><div class="some class">Purchasing</div>
Seems just concatenating them via string or stringbuilder is not the right way to do it.
Any suggestions? thanks 🙂
Maybe the Java Anti-Template Language (JATL) would work for you. It’s coded using fluent API syntax.