Skip to content

Instantly share code, notes, and snippets.

@albrow
Created October 22, 2014 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albrow/428c561869829ec0b31e to your computer and use it in GitHub Desktop.
Save albrow/428c561869829ec0b31e to your computer and use it in GitHub Desktop.
An way of specifying that a route should render a specific template in wade.go (Concept only)
package main
// ...
func main() {
// ...
app.Router.Handle("/", wade.Page{
Id: "pg-home",
Title: "Home",
Template: "templates/home.html",
})
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment