최정민

FEAT : VIEW ENGINE 수정

pug -> ejs로 view enigine 수정

-
1 +# Default ignored files
2 +/shelf/
3 +/workspace.xml
4 +# Editor-based HTTP Client requests
5 +/httpRequests/
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<module type="WEB_MODULE" version="4">
3 + <component name="NewModuleRootManager">
4 + <content url="file://$MODULE_DIR$">
5 + <excludeFolder url="file://$MODULE_DIR$/temp" />
6 + <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7 + <excludeFolder url="file://$MODULE_DIR$/tmp" />
8 + </content>
9 + <orderEntry type="inheritedJdk" />
10 + <orderEntry type="sourceFolder" forTests="false" />
11 + </component>
12 +</module>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="ProjectModuleManager">
4 + <modules>
5 + <module fileurl="file://$PROJECT_DIR$/.idea/CafeRecommend.iml" filepath="$PROJECT_DIR$/.idea/CafeRecommend.iml" />
6 + </modules>
7 + </component>
8 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="VcsDirectoryMappings">
4 + <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
...@@ -11,7 +11,7 @@ var app = express(); ...@@ -11,7 +11,7 @@ var app = express();
11 11
12 // view engine setup 12 // view engine setup
13 app.set('views', path.join(__dirname, 'views')); 13 app.set('views', path.join(__dirname, 'views'));
14 -app.set('view engine', 'pug'); 14 +app.set('view engine', 'ejs');
15 15
16 app.use(logger('dev')); 16 app.use(logger('dev'));
17 app.use(express.json()); 17 app.use(express.json());
......
1 +<h1><%= message %></h1>
2 +<h2><%= error.status %></h2>
3 +<pre><%= error.stack %></pre>
1 -extends layout
2 -
3 -block content
4 - h1= message
5 - h2= error.status
6 - pre #{error.stack}
File mode changed
1 -extends layout
2 -
3 -block content
4 - h1= title
5 - p Welcome to #{title}
1 -doctype html
2 -html
3 - head
4 - title= title
5 - link(rel='stylesheet', href='/stylesheets/style.css')
6 - body
7 - block content