extending mail template

Hello, 

I need to extend an order confirmation template with some custom information. How to add custom data to the mail template. (For example: {{ delivery.myCustomData }})