Register custom helpers for Handlebars inside the email templates

I’d like to be able to register custom helpers to format text in my email templates, for example: {{splitName order.billingAddress.fullName}} Is there a way to do that?