Created
January 15, 2009 05:29
-
-
Save chrisortman/47273 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Application { | |
public Func<Url> Blog_Url = get('/blogs/index', x => x.Class('BlogController').Action('ShowBlogs')) | |
} | |
public partial class Site { | |
public class Blogs { | |
public static Func<int,URL> Show = get(() => { | |
//do some lookup and render | |
}); | |
} | |
} | |
<a href="Site.Blogs.Show(1)">Show</a> | |
Somewhere in framework code | |
var action = ActionRegistry.Find(Site.Blogs.Show); | |
action.Invoke(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment