Ejs
lastmod 2018-08-31created 2015-07-276 edits
Embedded JavaScript templating.
What is EJS?
What is the "E" for? "Embedded?" Could be. How about "Effective," "Elegant," or just "Easy"? EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript.
Syntax
EJS takes the form of HTML with JS code added. However, all JavaScript code must go inside <% %>. To output a variable, use <%= 변수이름 %>.
See also
Favorite site
- Use EJS to Template Your Node Application
- Building a Dynamic Website with EJS
- [Recommended] (Node.JS) Tutorial 10-1: Applying the Express Framework – EJS 1
References
-
Node.JS_tutorial_10-1_-Express-EJS-_VELOPERT.LOG.pdf ↩