private void copyPrefixTo(StringBuilder result) {
        result.append(template, previousIndex, index);
    }
A single class templating library for doing runtime code-gen.

Not Threadsafe.
jctools-channels/src/main/java/org/jctools/util/Template.java