Implement document template substitution for quan report publisher