Back to directory

EJS

A JavaScript templating engine that compiles plain-JavaScript control flow embedded in HTML into a render function, compatible with Node, browsers and the Express view system.

EJS

EJS (Embedded JavaScript templates) is a templating engine that lets a template mix HTML with plain JavaScript control flow, escaped or unescaped output, includes, and custom delimiters. Templates can be compiled once and rendered repeatedly, or rendered directly from a string or a file.

It supports both CommonJS and ES Module imports, works from Node back to very old versions as well as in the browser, and its published package imports cleanly under bundlers including Rollup, Rolldown, esbuild, Webpack, Vite, Browserify, Bun and Deno. It also complies with the Express view system and supports static caching of compiled templates.

Because EJS executes arbitrary JavaScript by design, an application using it is responsible for validating any user input passed into a render call.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.