Skip to content

Commit

Permalink
created a head and footer partials
Browse files Browse the repository at this point in the history
  • Loading branch information
frannyfra committed Aug 22, 2019
1 parent d71aa31 commit 1bbfa3c
Show file tree
Hide file tree
Showing 8 changed files with 258 additions and 0 deletions.
225 changes: 225 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
},
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {
"express-handlebars": "^3.1.0"
}
}
1 change: 1 addition & 0 deletions public/dom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('this is javascript');
1 change: 1 addition & 0 deletions src/views/home.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{!-- console.log('this is our home.hbs'); --}}
18 changes: 18 additions & 0 deletions src/views/layouts/main.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">

{{> head}}

<body>

{{{ body }}}

{{> footer}}


</body>


<script src="/public/dom.js"></script>

</html>
4 changes: 4 additions & 0 deletions src/views/partials/footer.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<footer>
<p>copyright Jack2019</p>

</footer>
6 changes: 6 additions & 0 deletions src/views/partials/head.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Adoptify</title>
</head>
Empty file removed src/views/partials/header.hbs
Empty file.

1 comment on commit 1bbfa3c

@jackbridger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relates #10

Please sign in to comment.