First: Only consider special naming for methods like these if they are for exclusive use by the template method. In addition, you should comment these methods stating that they are used by the template method and any modifications should be made with that usage in mind.
The methods that make up replaceable steps in a template method are often called "hook" methods. You'll sometimes see them named with "Hook" at the end.
In your example, you may want to call it renderHook()
, though if you can get more specific on the task that it is performing within the template method render()
that would be more descriptive.
I have seen doXXX()
used, though it's primarily when there is a one-to-one template-to-hook relationship.
A possible suggestion. For a template method stuff()
:
If
stuff()
is primarily simple control logic around a single hook, name the hookdoStuff()
(This seems to be the case in your example above)If
stuff()
orchestrates several hooks, name them independently withHook
suffixes, and do not name any of them the same as the template (in this case, there should be nostuffHook()
method.