Skip to content

Ejs

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는 html에 js 코드가 더해진 형태를 하고 있습니다. 다만 모든 JavaScript 코드들은 <% %>에 들어가야 합니다. 변수를 출력할때는 <%= 변수이름 %>을 사용합니다.

See also

Favorite site

References


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