Writing web application in Go, the Go Wiki tutorial.
Implemented Other tasks
- ✔ Store templates in
tmpl/
and page data indata/
. - ✔ Add a handler to make the web root redirect to
/view/FrontPage
. - ✔ Spruce up the page templates by making them valid HTML and adding some CSS rules.
- ✔ Implement inter-page linking by converting instances of
[PageName]
to<a href="/view/PageName">PageName</a>
. (hint: you could useregexp.ReplaceAllFunc
to do this)
- ✔ Add
mimeHandler
to handle static files (css, png, etc.) - ✔ Display page in its original formatting (e.g. newline)