Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 61 additions & 0 deletions index.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<title>Sunlight</title>
</head>

<body>
<h1>What Have You Done</h1>
<h1>{{zip}}</h1>

<h1>House</h1>

{{#each reps as |rep|}}
<div class="rep">
<div class="rep-pic">
<a href="/reps/{{rep.pic}}">
{{rep.pic}}
</a>
</div>

<div class="rep-name">
<a href="/reps/{{rep.name}}">
{{rep.name}}
</a>
</div>

<div class="rep-party">
<a href="/reps/{{rep.party}}">
{{rep.party}}
</a>
</div>
</div>
{{/each}}

<h1>repate</h1>

{{#each reps as |rep|}}
<div class="rep">
<div class="rep-pic">
<a href="/reps/{{rep.pic}}">
{{rep.pic}}
</a>
</div>

<div class="rep-name">
<a href="/reps/{{rep.name}}">
{{rep.name}}
</a>
</div>

<div class="rep-party">
<a href="/reps/{{rep.party}}">
{{rep.party}}
</a>
</div>
</div>
{{/each}}

</body>

</html>
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const express = require('express')
const app = express()

app.get('/', function (request, response) {
response.send('Hello Viking!')
})

app.listen(3000, function () {
// This function is run when the app starts up.
console.log('Kemst þó hægt fari.')
})

app.set('view engine', 'hbs')
1 change: 1 addition & 0 deletions node_modules/.bin/handlebars

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

1 change: 1 addition & 0 deletions node_modules/.bin/mime

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

1 change: 1 addition & 0 deletions node_modules/.bin/uglifyjs

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

218 changes: 218 additions & 0 deletions node_modules/accepts/HISTORY.md

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

23 changes: 23 additions & 0 deletions node_modules/accepts/LICENSE

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

Loading