Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eleventy-plugin-mjml
Advanced tools
eleventy-plugin-mjml
Generate HTML email content with Eleventy and MJML.
This allows you to add .mjml
template files to your Eleventy input directory, which are then converted to HTML during your Eleventy build.
I'm working out how you could build your HTML emails within your Eleventy site, and then send them using an email API like Mailjet.
npm install eleventy-plugin-mjml
.eleventy.js
const { MjmlPlugin } = require("eleventy-plugin-mjml");
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(MjmlPlugin, {
// if you want to use Nunjucks syntax within your MJML files, set to true
preprocessWithNunjucks: false,
// You can add Nunjucks filters here
// the key is the name of the filter, and the value is the function
nunjucksFilters: {
myImaginaryFilter: (value, param) => value,
},
});
};
.mjml
file to your input directoryEg. src/index.mjml
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-text> {{title}}! </mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
If you enable the preprocessWithNunjucks
option, you can use Nunjucks within the .mjml
files:
---
title: My Newsletter
---
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-text>{{title}}</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
FAQs
Create HTML email with Eleventy and MJML
The npm package eleventy-plugin-mjml receives a total of 0 weekly downloads. As such, eleventy-plugin-mjml popularity was classified as not popular.
We found that eleventy-plugin-mjml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.