Created
January 11, 2011 00:07
-
-
Save jeremydmiller/773750 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 class HelloWorldFubuRegistry : FubuRegistry | |
{ | |
public HelloWorldFubuRegistry() | |
{ | |
IncludeDiagnostics(true); | |
HomeIs<HomeInputModel>(); | |
Actions | |
.IncludeClassesSuffixedWithController(); | |
Routes | |
.IgnoreControllerNamespaceEntirely() | |
.IgnoreMethodSuffix("Command") | |
.IgnoreMethodSuffix("Query") | |
.ConstrainToHttpMethod(action => action.Method | |
.Name.EndsWith("Command"), "POST") | |
.ConstrainToHttpMethod(action => action.Method | |
.Name.StartsWith("Query"), "GET"); | |
Views.TryToAttachWithDefaultConventions(); | |
HtmlConvention<SampleHtmlConventions>(); | |
RegisterPartials(x => x.For<Product>().Use<ProductPartial>()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment