Embedded JavaScript
This article needs more citations. (January 2025) |
| EJS (Embedded Javascript) | |
|---|---|
| Original author | Edward Benson |
| Release | 2007 |
| Type | Web Template System, Templating language |
| License | MIT License |
| Website | ejs |
| Repository | |
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.[citation needed] It include features such as subtemplates that can be included in other templates and caching to improve performance.[10][11]
References
- ^ 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.
- ^ "EJS -- Embedded JavaScript templates". ejs.co. Retrieved 2024-11-15.
- ^ "EJS Moving to Google Code".
- ^ "EJS License".
- ^ "Express Helpers License".
- ^ "RabbitMQ Federation Management License".
- ^ "Open Source used in Alpine Linux" (PDF).
- ^ "DoneJS".
- ^ "EJS".
- ^ "ejs-tj/README.md at master · TimothyGu/ejs-tj". GitHub. Retrieved 2024-11-15.
- ^ Klauzinski, Philip; Moore, John (2016-10-28). Mastering JavaScript Single Page Application Development. Packt Publishing Ltd. ISBN 978-1-78588-644-7.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.