finds.dev← search

// the find

tj/ejs

★ 4,461 · JavaScript · updated Sep 2023

Embedded JavaScript templates for node

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.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →