Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@vue-email/core
Advanced tools
Simple way to build email templates in vue.
[!IMPORTANT]
Experimental and under heavy development. APIs are subject to change.
# pnpm
pnpm add -D vue-email
# npm
npm i -D vue-email
// components/template-email.vue
<script setup>
import { EButton, EHr, EHtml, EText } from 'vue-email';
import { ref } from 'vue';
const user = ref('Dave');
</script>
<template>
<e-html lang="en">
<e-text>Hello, {{ user }}!</e-text>
<e-hr />
<e-button href="vuejs.org">Visit vue</e-button>
</e-html>
</template>
You can see the full example here
For SSR, you need to install @vue-email/compiler
, now compiler
with support for deno, and bun.
import express from "express";
import { config } from "@vue-email/compiler";
const app = express();
const vueEmail = config("./templates", {
verbose: false,
options: {
baseUrl: "https://vue-email-demo.vercel.app/",
},
});
app.get("/", async function (req, res) {
const template = await vueEmail.render("WelcomeEmail.vue", {
props: {
name: "John Doe",
},
});
res.send(template);
});
app.listen(3000);
corepack enable
pnpm install
If you like our work, please feel to free to support us!
1Bwo1Htd47rLRM4PZhydWtoC5ZAR4Fv9KZ
This project is inspired by react-email
This project is licensed under MIT
FAQs
๐ Write email templates with Vue
The npm package @vue-email/core receives a total of 101 weekly downloads. As such, @vue-email/core popularity was classified as not popular.
We found that @vue-email/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.ย It has 2 open source maintainers 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.