Allow to write templates in attachments