GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Contents
  • Current events
  • Random article
  • About Wikipedia
  • Contact us
  • Help
  • Learn to edit
  • Community portal
  • Recent changes
  • Upload file
  • Special pages
  • Search
  • Donate

This view

  • Original page
  • New address

GeezerVison is showing en.wikipedia.org — Embedded JavaScript - Wikipedia

icon
This article needs more citations. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Embedded JavaScript" – news · newspapers · books · scholar · JSTOR
(January 2025) (Learn how and when to remove this message)
EJS (Embedded Javascript)
Original authorEdward Benson
Release2007
TypeWeb Template System, Templating language
LicenseMIT License
Websiteejs.co Edit this on Wikidata
Repository
  • github.com/mde/ejs

Embedded JavaScript (EJS) is a web templating system or templating language that allows developers to code HTML markup with simple JavaScript.[1] It mainly uses logic from JavaScript, which makes benefits for developers who already know JavaScript language before. EJS is frequently used in Node.js, it means that any platform that supports JavaScript language also supports EJS.[2]

History

EJS was first published in 2007 by Edward Benson[3] under the MIT license,[4] allowing developers to embed JavaScript logic directly into HTML. EJS was written as a JavaScript port of the ERB templating system, which blended Ruby within HTML in a similar way. EJS was the first in-browser templating system to follow this pattern. It was quickly incorporated into projects such as Express,[5] RabbitMQ[6] and Alpine Linux.[7] After publication, the project was quickly adopted by Bitovi, who became its primary maintainer as part of the DoneJS ecosystem of tools.[8] EJS has since been re-written and re-published by many different authors.

In 2025, the most popular EJS implementation is by Matthew Eernisse,[9] licensed under the Apache License, version 2.0. It include features such as subtemplates that can be included in other templates and caching to improve performance.[10][11]

References

  1. ↑ Oxley, Tim; Rajlich, Nathan; Holowaychuk, T. J.; Young, Alex (2017-08-16). Node.js in Action. Simon and Schuster. ISBN 978-1-63835-517-5.
  2. ↑ "EJS -- Embedded JavaScript templates". ejs.co. Retrieved 2024-11-15.
  3. ↑ "EJS Moving to Google Code".
  4. ↑ "EJS License".
  5. ↑ "Express Helpers License".
  6. ↑ "RabbitMQ Federation Management License".
  7. ↑ "Open Source used in Alpine Linux" (PDF).
  8. ↑ "DoneJS".
  9. ↑ "EJS".
  10. ↑ "ejs-tj/README.md at master · TimothyGu/ejs-tj". GitHub. Retrieved 2024-11-15.
  11. ↑ Klauzinski, Philip; Moore, John (2016-10-28). Mastering JavaScript Single Page Application Development. Packt Publishing Ltd. ISBN 978-1-78588-644-7.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Embedded_JavaScript&oldid=1342151352"
Categories:
  • Template engines
  • JavaScript libraries
  • Free software programmed in JavaScript
  • Software using the Apache license
Hidden categories:
  • Articles with short description
  • Short description is different from Wikidata
  • Articles needing additional references from January 2025
  • All articles needing additional references
  • All articles with unsourced statements
  • Articles with unsourced statements from January 2025
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.