mjmlio/mjml — dự án mã nguồn mở — đang có 18.3k sao GitHub. MJML: the only framework that makes responsive email easy
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
MJML is a markup language created by Mailjet and designed to reduce the pain of coding a responsive email. Its semantic syntax makes the language easy and straightforward while its rich standard components library shortens your development time and lightens your email codebase. MJML’s open-source engine takes care of translating the MJML you wrote into responsive HTML.
Installation
You can install MJML with NPM to use it with NodeJS or the Command Line Interface. If you're not sure what those are, head over to Usage for other ways to use MJML.
npm install mjml
Development
To work on MJML, make changes and create pull requests, download and install yarn for easy development.
git clone https://github.com/mjmlio/mjml.git && cd mjml
yarn
yarn build
You can also run yarn build:watch to rebuild the package as you code.
Usage
Online
Don't want to install anything? Use the free online editor!
Applications and plugins
MJML comes with tools and plugins, check out:
Visual Studio Code plugin (MJML is included). Also available at Visual Studio Code Marketplace and the Open VSX Registry or in the extensions tab of the Visual Studio Code app.
Sublime Text plugin (MJML needs to be installed separately)
For more tools, check the Community page.
Command line interface
Compiles the file and outputs the HTML generated in output.html
mjml input.mjml -o output.html
You can pass optional arguments to the CLI and combine them.
argument
description
default value
mjml [input] -o [output]
Writes the output to [output]
mjml [input] -s
Writes the output to stdout
mjml [input] -s --noStdoutFileComment
Writes the output to stdout without file comment in the first line
mjml -w [input]
Watches the changes made to [input] (file or folder)
mjml [input] --config.allowIncludes
Enables mj-include processing (true or false)
false
mjml [input] --config.allowMixedSyntax
Allows mixing block and CSS variable syntax when sanitizeStyles is enabled (true or false)
false
mjml [input] --config.beautify
Beautifies the output (true or false)
true
mjml [input] --config.includePath
Adds allowlisted include root(s), as a string path or JSON array of paths
mjml [input] --config.minify
Minifies the output (true or false)
false
mjml [input] --config.minifyOptions
Options for HTML minifier, use minifyCss to control CSS minification
See mjml-cli documentation
mjml [input] --config.juicePreserveTags
Preserve some tags when inlining CSS
See mjml-cli documentation
mjml [input] --config.mjmlConfigPath
Path to .mjmlconfig file for custom components
current working directory
mjml [input] --config.sanitizeStyles
Sanitizes template variables inside CSS before minification (true or false)
false
mjml [input] --config.useMjmlConfigOptions
Allows to use the options attribute from .mjmlconfig file
false
mjml [input] --config.templateSyntax
Sets custom template delimiters as JSON array ([{"prefix":"{{","suffix":"}}"}])
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/mjmlio/mjml là nguồn chính thức.
mjmlio/mjml có bao nhiêu sao?
mjmlio/mjml có 18.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/mjmlio/mjml. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
mjmlio/mjml có những chủ đề gì?
GitHub topics của mjmlio/mjml: "email", "email-boilerplate", "email-campaigns", "mjml", "responsive", "responsive-email". TopGit xếp repo vào nhóm mã nguồn mở.
mjmlio/mjml có phải mã nguồn mở không?
Có — mjmlio/mjml phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/mjmlio/mjml.
mjmlio/mjml có trang demo không?
Dự án có trang chủ ở https://mjml.io. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
mjmlio/mjml còn đang phát triển không?
Commit gần nhất trên mjmlio/mjml là 8 ngày trước (theo timestamp GitHub). Repo có 1.0k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc mjml có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về mjml.