node.js #pug
-
[Node.js] node.js에서 pug 연결WEB/NodeJS 2022. 9. 15. 22:33
pug는 HTML 템플릿 엔진이다. 템플릿 엔진은 자바스크립트를 사용하여 HTML을 렌더링할 수 있게 해준다. HTML과 아주 살짝 다른 문법을 가지고 있다. 1. 닫는 태그 사용 X 2. id는 #container과 같이 #을 입력하고 클래스는 .col처럼 .을 입력 3. 태그 사이가 아닌 태그의 속성으로 넣으려면 () 사용 ex) html(lang='en') HTML Pug - node template engine You are amazing Pug is a terse and simple templating language with a strong focus on performance and powerful features. Pug doctype html html(lang="en") head titl..