개발/Node.js2024. 10. 29. 14:24Pug Conditional Iteration
1. Conditional - 특정 상황의 유저에게만 보이게 하기 위해 Template에 작성// base.pugdoctype htmlhtml(lang="ko") head title #{pageTitle} | Wetube link(rel="stylesheet" href="https://unpkg.com/mvp.css") body header h1=pageTitle main block content include partials/footer.pug - h1=pageTitle 과 h1 #{pageTitle} 은 같긴 하지만 여기선 variable을 다른 text와 섞고 싶지 않기 때문임 - ta..