Hello,
The template methods use placeholders to replace them by new contents. You can customize the symbol that wrap the placeholders and the name of the placeholders.
If you need a more advanced solution, that doesn't require placeholders, you can use DOCXPath, but it only works for the body content.
Regards.