Skip to content

Commit

Permalink
try templates in heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
kuozo committed Dec 24, 2013
1 parent 2695386 commit 093f671
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<title>Reife -- Record your life.</title>
</head>
<body>
<h2>Hello.</h2>
<p>The app coming soon.</p>
</body>
</html>
7 changes: 6 additions & 1 deletion web.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ package main

import (
"fmt"
"html/template"
"net/http"
"os"
)

func HomeHandler(w http.ResponseWriter, req *http.Request) {
fmt.Fprintln(w, "Hi, The App comming soon")
t, err := template.ParseFiles("templates/home.html")
if err != nil {
fmt.Println(err)
}
t.Execute(w, nil)
}

func main() {
Expand Down

0 comments on commit 093f671

Please sign in to comment.