This is the butchery I'm dealing with right now on my email.ts
file:
fullEmailTemplate(payToName, categoryName, amount) {
return "<!DOCTYPE HTML>\n" +
"<html>\n" +
"<head>\n" +
"\n" +
"<!-- Responsive Meta Tag -->\n" +
"<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0;\" />\n" +
"\n" +
So on and so forth.. It's a huge email template that's why I'm not copying everything here.
Problem with that is that lags up my IDE.
How can I have a separate file, like email-template.html and then load it into that function?
Edit: the trick is, since there are many email templates, I'd like to have one html for each template.
How would that work inside a single ts file?