Add magic auto-updating document hash to mail template