"EJS"의 두 판 사이의 차이

(새 문서: ==개요== ;Embedded JavaScript; EJS; ejs * 자바스크립트 템플릿엔진 ==참고 자료== * http://www.embeddedjs.com/ 분류: JavaScript 라이브러리 분류: 템플...)
 
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 4개는 보이지 않습니다)
3번째 줄: 3번째 줄:
* 자바스크립트 템플릿엔진
* 자바스크립트 템플릿엔진


==참고 자료==
<syntaxhighlight lang='javascript'>
// load a template file, then render it with data
html = new EJS({url: '/template.ejs'}).render(data)
 
// update element 'todo' with the result of a 
// template rendered with data from a JSON request
new EJS({url:'/todo.ejs'}).update('todo','/todo.json')
</syntaxhighlight>
 
==같이 보기==
* [[Pug]]
* [[express --ejs]]
 
==참고==
* http://www.embeddedjs.com/
* http://www.embeddedjs.com/


[[분류: JavaScript 라이브러리]]
[[분류: JavaScript 라이브러리]]
[[분류: 템플릿 엔진]]
[[분류: 템플릿 엔진]]

2020년 11월 2일 (월) 02:53 기준 최신판

1 개요[ | ]

Embedded JavaScript; EJS; ejs
  • 자바스크립트 템플릿엔진
// load a template file, then render it with data
html = new EJS({url: '/template.ejs'}).render(data)

// update element 'todo' with the result of a  
// template rendered with data from a JSON request
new EJS({url:'/todo.ejs'}).update('todo','/todo.json')

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}