Skip to Content
한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
book

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

by 한선용, 이선 브라운
May 2021
Beginner to intermediate
448 pages
9h 47m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
415
부록
C
미들웨어
C.1
미들웨어 연결하기
10
장의 깃허브 예제는
home
.
handlebars
를 수정하는 형태입니다. 왜 이렇게 구성했는지는 저
자가 따로 언급한 것이 없어 정확히 알 수 없지만, 예제 웹사이트를 처음부터 완성해나간다는
기획 의도와는 동떨어진 것으로 판단하여 따로 라우트를 만들어 이동하는 형태로 수정했습니
다. 독자 여러분의 양해를 구합니다.
먼저 다음과 같이
views
/
cart
.
handlebars
파일을 만듭니다. 저자의 깃허브를 클론했다면
ch10
/
views
/
home
.
handlebars
파일을 그대로 복사해도 됩니다.
<h2>Your Shopping Cart</h2>
<ul>
{{#each cart.errors}}
<div class=”alert alert-dismissible alert-danger”>
<button type=”button” class=”close”
data-dismiss=”alert” aria-hidden=”true”>&times;</button>
<strong>Error!</strong> {{.}}
</div>
{{/each}}
{{#each cart.warnings}}
<div class=”alert alert-dismissible alert-warning”>
<button type=”button” class=”close” ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한성용, 이선 브라운

Publisher Resources

ISBN: 9791162244227