View & JavaScript1 [Mustache] 기본 문법 레이아웃 추가 mustache 디렉토리 구조 index.mustache {{>layout/header}} {{>layout/bodyHeader}} 🚘중고차 관리 프로그램🚖 차량 매입 기능 차량 매입 차량 목록 차량 출고 기능 차량 출고 출고 목록 {{>layout/footer}} {{> }}: 현재 머스테치 파일을 기준으로 다른 파일을 가져온다. 반복문 {{#cars}} {{id}} {{model}} {{color}} {{productionYear}} {{staff}} 출고 {{/cars}} {{#cars}}: cars라는 List를 순회한다. {{변수명}}: List에서 뽑아낸 객체의 필드를 사용한다. IF/ELSE {{#isReleased}} {{status}} {{/isReleased}} {{^is.. 2021. 6. 2. 이전 1 다음