add hook for template change detection during content generation