add hook for template_details for #845

closes #845