[very wip] email template rendering