After a lot of searches, I am having difficulties in finding how:
I was expecting something l
MJML doesn't handle any templating. If you want templates, use a template engine such as handlebars to render to MJML.
import { compile } from 'handlebars';
import { mjml2html } from 'mjml';
const template = compile(`
{{message}}
`);
const context = {
message: 'Hello World'
};
const mjml = template(context);
const html = mjml2html(mjml);