There are several VF email templates in my org which internally references VF components. These components have custom functionality of querying different objects and preparing a custom result which is rendered in the email body.
How can I achieve this in lightning email template?
I tried creating a component and referenceing that in the lightning html email template as
<c:TestEmailComp/> but it prints it as characters in the email body.