0fb7d4ba by astaxie

add UrlFor function but still improve

1 parent 91c7635d
Showing 1 changed file with 15 additions and 0 deletions
......@@ -373,3 +373,18 @@ func GetRandomString(n int) string {
}
return string(bytes)
}
// This will reference the index function local to the current blueprint:
// UrlFor(".index")
// ... print UrlFor("index")
// ... print UrlFor("login")
// ... print UrlFor("login", "next","/"")
// ... print UrlFor("profile", "username","John Doe")
// ...
// /
// /login
// /login?next=/
// /user/John%20Doe
func UrlFor(endpoint string, values ...string) {
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!