Latest in Templating
Home → Templating
Generating HTML and text from templates in Node.js — engines, escaping, and rendering dynamic content safely.
A contact form in Node.js that actually sends email: Express 5, express-validator, Mustache and Nodemailer
A complete contact form in Node.js: server-side validation with express-validator, Mustache templates that keep what the visitor typed, email delivery with Nodemailer, a honeypot against bots, and POST/Redirect/GET so a refresh doesn't send it twice. Tested end to end against a local SMTP server, including HTML injection, email header injection and what happens when SMTP is down.