Commit 0fb7d4ba authored by astaxie's avatar astaxie

add UrlFor function but still improve

parent 91c7635d
......@@ -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) {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment