Just from looking at the source code of 2.2.0.
The renderMode parameter seems to have two options:
- replaceNode - This will replace the entire target node with the output of the template.
- replaceChildren - Default. This will replace only the children of the target node, leaving the target node intact.