Clarify the `_invoke_template` method