pub fn template_info(file: &Path) -> Result<TemplateInfo>
Get template info for a document (for plugin rendering).