add docs for template in attachments fix #2