@spinajs/templates-mjml
v3.0.26
Published
MJML template renderer for @spinajs/templates - generates responsive emails.
Readme
@spinajs/templates-mjml
MJML renderer for @spinajs/templates: renders .mjml files through Handlebars and MJML into responsive, email-ready HTML.
Usage
import '@spinajs/templates-handlebars';
import '@spinajs/templates-mjml';
import { DI } from '@spinajs/di';
import { Templates } from '@spinajs/templates';
const templates = await DI.resolve(Templates);
const html = await templates.render('./templates/welcome.mjml', { name: 'Ada' }, 'en');