Showing
3 changed files
with
22 additions
and
11 deletions
... | @@ -23,12 +23,12 @@ app.use('/', indexRouter); | ... | @@ -23,12 +23,12 @@ app.use('/', indexRouter); |
23 | app.use('/users', usersRouter); | 23 | app.use('/users', usersRouter); |
24 | 24 | ||
25 | // catch 404 and forward to error handler | 25 | // catch 404 and forward to error handler |
26 | -app.use(function(req, res, next) { | 26 | +app.use(function (req, res, next) { |
27 | next(createError(404)); | 27 | next(createError(404)); |
28 | }); | 28 | }); |
29 | 29 | ||
30 | // error handler | 30 | // error handler |
31 | -app.use(function(err, req, res, next) { | 31 | +app.use(function (err, req, res, next) { |
32 | // set locals, only providing error in development | 32 | // set locals, only providing error in development |
33 | res.locals.message = err.message; | 33 | res.locals.message = err.message; |
34 | res.locals.error = req.app.get('env') === 'development' ? err : {}; | 34 | res.locals.error = req.app.get('env') === 'development' ? err : {}; | ... | ... |
views/components/header.ejs
0 → 100644
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | - <head> | 3 | + |
4 | - <title><%= title %></title> | 4 | +<head> |
5 | - <link rel='stylesheet' href='/stylesheets/style.css' /> | 5 | + <title>Animal Info</title> |
6 | - </head> | 6 | + <link rel='stylesheet' href='/stylesheets/style.css' /> |
7 | - <body> | 7 | +</head> |
8 | - <h1><%= title %></h1> | 8 | + |
9 | - <p>Welcome to <%= title %></p> | 9 | +<body> |
10 | - </body> | 10 | + <%- include("components/header") -%> |
11 | -</html> | 11 | + <h2>서울 동물 </h2> |
12 | + <p> | ||
13 | + 지역 선택 | ||
14 | + </p> | ||
15 | +</body> | ||
16 | + | ||
17 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment