nunjucks 설치
terminal에서
npm init
<< 이미했으면 X
npm install nunjucks

nunjucks를 사용해 JS에서 HTML연결
nunjucks.configure('views',{
express:app,
autoescape:true,
});
app.set('view engine','html');
'Lecture' 카테고리의 다른 글
| Render (0) | 2021.04.20 |
|---|---|
| 서버 여는 법 (0) | 2021.04.20 |
| express 설치 방법 (0) | 2021.04.20 |
| git - user Information (0) | 2021.04.20 |
| Template Literals (0) | 2021.04.14 |