An example with the url_for helper. It depends on more files. Take a look at it on the balde source code.