templateBody is actually a FreeMarker macro rather than a directive. It is located in the WQS webapp at "WEB-INF/webscripts/common/page.ftl"
If you are looking for an example of a directive instead then there are a few defined in the org.alfresco.wcm.client.directive package (again in the webapp).