finds.dev

tj/ejs

Embedded JavaScript templates for node

View on GitHub

★ 4,461JavaScriptupdated Sep 2023

// the take

This is tj's original EJS — the v1 line, effectively archived. Active development moved to github.com/mde/ejs (v2+) years ago and the README says so up front. If you're looking for a template engine to actually use, you want the mde fork.

The filter syntax (`<%=: users | map:'name' | join %>`) is genuinely nice for designer-friendly templates — cleaner than calling `.map().join()` inline. Static caching of compiled functions is sensible and the implementation is small enough to read in an afternoon. Custom delimiters work and the client-side bundle is included as a pre-built file, which was useful before bundlers were everywhere.

Dead repo — last meaningful commit was over a decade ago and the README explicitly redirects you elsewhere. The filter feature it touts was dropped in v2, so learning it here will mislead you. No layout or block system; the workaround of including header/footer files is a hack that falls apart the moment you need content injection. Travis CI badge, no npm provenance, no TypeScript types — the tooling signals match the age of the code.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
4,461
Forks
496
Language
JavaScript
Last commit
12 Sep 2023

// nearby

If ejs isn't quite it.

All repos →