cache-pug-templates

JSON →
library 2.0.3 ·javascript maintenance
verified Jun 7, 2026

Utility for caching Pug templates in web frameworks like Express, Koa, and Connect. v2.0.3 is the latest stable release (last updated 2020). It batches template compilation to avoid overhead on first request. Alternatives like pug's built-in caching or webpack-based approaches offer more integration, but this package provides explicit control over batch caching for Lad/Koa/Express/Connect apps.