Skip to content

Commit

Permalink
adds a car view and partial for header and make a route for them
Browse files Browse the repository at this point in the history
  • Loading branch information
Karyum committed May 15, 2017
1 parent ec06b42 commit bf44283
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/carPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const carRouteHandler = (request, reply) => {
reply.view('carPage', {
reply.view('carRoute', {
title: 'Private Parking',
address: 'ElMutran Parking',
});
Expand Down
2 changes: 2 additions & 0 deletions src/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const homeHandler = require('./home.js');
const staticHandler = require('./static.js');
const carHandler = require('./carPage.js');

module.exports = [
homeHandler,
staticHandler,
carHandler,
];
4 changes: 3 additions & 1 deletion src/views/carRoute.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{{> header}}
<div id="app-background" class="navy-background">
{{> header}}
</div>
2 changes: 2 additions & 0 deletions src/views/partials/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>{{title}}</h1>
<p>{{address}}</p>

0 comments on commit bf44283

Please sign in to comment.