diff --git a/app/controllers/app.go b/app/controllers/app.go new file mode 100644 index 0000000..47b5739 --- /dev/null +++ b/app/controllers/app.go @@ -0,0 +1,11 @@ +package controllers + +import "github.com/robfig/revel" + +type Application struct { + *rev.Controller +} + +func (c Application) Index() rev.Result { + return c.Render() +} diff --git a/app/views/Application/Index.html b/app/views/Application/Index.html new file mode 100644 index 0000000..47e1358 --- /dev/null +++ b/app/views/Application/Index.html @@ -0,0 +1,7 @@ +{{set "title" "Home" .}} +{{template "header.html" .}} + +
+ {{.Description}} +
+ {{end}} +{{end}} + + diff --git a/app/views/errors/500.html b/app/views/errors/500.html new file mode 100644 index 0000000..0cef4de --- /dev/null +++ b/app/views/errors/500.html @@ -0,0 +1,16 @@ + + + ++ This exception has been logged. +
+ {{end}} + + diff --git a/app/views/footer.html b/app/views/footer.html new file mode 100644 index 0000000..b605728 --- /dev/null +++ b/app/views/footer.html @@ -0,0 +1,2 @@ +