Documentation Index
Fetch the complete documentation index at: https://mintlify.com/maizzle/maizzle.com/llms.txt
Use this file to discover all available pages before exploring further.
API
Use the Maizzle API to compile a string to an HTML email.Example
app.js
html string must include at least <style> @tailwind utilities; </style> inside the <head>, otherwise no CSS will be output or inlined.
Notice also the css.tailwind config.
The content key is needed for Tailwind to know where to look for classes to generate - otherwise your <style> tag will be empty and no CSS would be inlined either.
We also pass a presets array with the tailwindcss-preset-email package, which configures Tailwind to output CSS values optimized for HTML email.
Usage
First, import therender method in your application:
app.js
Use object destructuring so that you don’t import all the other methods from Maizzle, like
serve.app.js
render method returns an object containing the compiled HTML and the Environment config that was computed for it.
Templating
Of course, templating tags are available when using Maizzle programmatically.app.js