A helper function that entabs the given CodeBuilder, calls a delegate to generate some code, and then detabs the CodeBuilder.
The CodeBuilder to use.
The CodeFunc to use.
builder
auto builder = new CodeBuilder(); builder.put("Hello"); builder.data.should.equal("Hello\n"); builder.putEntabbed(b => b.put("World")); builder.data.should.equal("Hello\n\tWorld\n");
See Implementation
A helper function that entabs the given CodeBuilder, calls a delegate to generate some code, and then detabs the CodeBuilder.