mjmlio/vscode-mjml hiện có 220 sao trên GitHub, viết chủ yếu bằng TypeScript. MJML preview, lint, compile for Visual Studio Code.
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.
This is a fork of original @attilabuti VSC extension : https://github.com/attilabuti/vscode-mjml
MJML preview, lint, compile for Visual Studio Code.
Features
Live preview for MJML files. Preview updates as you type.
Inline errors (squiggle underlines). Linter based on atom-linter-mjml.
Export HTML file from MJML.
Copy the result HTML to clipboard.
Send email with Nodemailer or Mailjet.
Code snippets for MJML. Based on mjml-syntax.
Fetch official templates. Based on email-templates.
Beautify MJML code.
MJML syntax highlight. Based on mjml-syntax.
Built-in MJML documentation with Try it live support.
It looks like this
Installation
Press F1, type ext install vscode-mjml.
Usage
Start command palette (with Ctrl+Shift+P or F1) and start typing MJML.
Available commands
The following command is available:
MJML: Beautify or Format Document Beautify MJML code.
MJML: Copy HTML Copy the result HTML to clipboard.
MJML: Export HTML Export HTML file from MJML.
MJML: Open Preview to the Side Opens a preview in a column alongside the current document.
MJML: Send Email Send email with Nodemailer or Mailjet.
MJML: Template Fetch official templates.
MJML: Documentation open the MJML documentation.
MJML: Search in MJML documentation search for the selected mj-element in the MJML documentation.
MJML: Version Shows the version of MJML.
Settings
Name
Default
Description
mjml.autoClosePreview
true
Automatically close preview when all open MJML documents have been closed.
mjml.allowIncludes
false
Enable mj-include processing. Disabled by default for security.
mjml.autoPreview
false
Automatically update preview when switching between MJML documents.
mjml.beautify
{}
Prettier options for beautifying MJML. (Priority: .prettierrc > mjml.beautify > defaults). See Prettier options.
mjml.beautifyHtmlOutput
false
Beautify HTML output. (Works when mjml.minifyHtmlOutput aren't enabled.)
mjml.exportType
.html
Specifies the file type of the output file.
mjml.includePath
[]
Additional directories to allow for <mj-include> lookups when mjml.allowIncludes is enabled. Supports absolute paths, or paths relative to the workspace root.
mjml.keepComments
true
Keep custom comments in HTML output when exporting MJML files.
mjml.lintEnable
true
Enable/disable MJML linter (requires restart).
mjml.lintWhenTyping
true
Whether the linter is run on type or on save.
mjml.mailer
mailjet
Send email with Nodemailer or Mailjet. Possible values are 'nodemailer' and 'mailjet'. See examples of Nodemailer config
mjml.mailFromName
Sender name.
mjml.mailjetAPIKey
Mailjet API Key.
mjml.mailjetAPISecret
Mailjet API Secret.
mjml.mailRecipients
Comma separated list of recipients email addresses.
mjml.mailSender
Sender email address. (Mailjet: must be a verified sender.)
mjml.mailSubject
Email subject.
mjml.minifyHtmlOutput
true
Minify HTML output.
mjml.mjmlConfigPath
The path or directory of the .mjmlconfig (or .mjmlconfig.js) file (for custom components use)
mjml.nodemailer
{}
Nodemailer configuration. Please see the Nodemailer documentation for more information.
mjml.preserveFocus
true
Preserve focus of Text Editor after preview open.
mjml.previewBackgroundColor
#FFFFFF
Preview background color.
mjml.showSaveDialog
false
Show the save as dialog instead of input box.
mjml.switchOnSeparateFileChange
true
Automatically switch previews when editing a different file.
mjml.templateGallery
false
Show the template gallery instead of quick pick.
mjml.templateGalleryAutoClose
true
Automatically close template gallery when selecting a template.
mjml.updateWhenTyping
true
Update preview when typing.
Include security settings (mjml.allowIncludes and mjml.includePath)
MJML 5 disables include processing by default for security.
Set mjml.allowIncludes to true to enable <mj-include> processing.
Keep mjml.allowIncludes as false (default) to ignore all includes.
Use mjml.includePath to allow includes outside the current template base path.
When includes are enabled:
Includes in the same folder (or subfolders) as the current MJML file are allowed.
Includes outside that folder are denied unless the target folder is listed in mjml.includePath.
mjml.includePath accepts absolute paths or workspace-relative paths.
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/vscode-mjml là nguồn chính thức.
mjmlio/vscode-mjml có phải mã nguồn mở không?
Có — mjmlio/vscode-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/vscode-mjml.
mjmlio/vscode-mjml có trang demo không?
Dự án có trang chủ ở https://marketplace.visualstudio.com/items?itemName=mjmlio.vscode-mjml. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
mjmlio/vscode-mjml dùng license gì?
mjmlio/vscode-mjml phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
mjmlio/vscode-mjml là gì?
mjmlio/vscode-mjml (mjmlio/vscode-mjml) là dự án TypeScript trên GitHub. Theo mô tả gốc: MJML preview, lint, compile for Visual Studio Code.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về vscode-mjml?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về vscode-mjml.