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.

About Code with Node.js

This is a personal blog and reference point of a Node.js developer.

I write and explain how different Node and JavaScript aspects work, as well as research popular and cool packages, and of course fail time to time.