PUG란

node.js에서 가장 많이 쓰이는 Template Engine이다.

장점

  1. html을 간단하게 표현해서 가독성이 좋다.
  2. js 연산 결과를 쉽게 보여줄 수 있다.
  3. 마크업 문법보다 코드량이 적어 생산성이 좋아진다.

⇒ 개인적으로는 잘 모르겠다.


특징

doctype html
html
    head
        title= title
        link(rel='stylesheet', href='/stylesheets/style.css')
div(class="genres-home")
  div(class="title-category-home")
    span(class="picto")
 생략한 코드
.genres-home
	.title-category-home
    span.picto

⇒ 하나의 프로젝트에 이것저것 혼재되어 있으면 더욱 가독성은 어려워 지는 것 같다.