Skip to content
Search

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

References


  1. Node.JS_tutorial_10-1_-Express-EJS-_VELOPERT.LOG.pdf ↩

author Zer0 sitemap