Skip to content

Instantly share code, notes, and snippets.

@DevJohnC
Created December 24, 2011 05:23
Show Gist options
  • Save DevJohnC/1516427 to your computer and use it in GitHub Desktop.
Save DevJohnC/1516427 to your computer and use it in GitHub Desktop.
using FubuMVC.Core;
namespace EducationWeb.AssetsMap
{
public class ConfigureFubuMVC : FubuPackageRegistry
{
public ConfigureFubuMVC()
{
Applies.ToAssemblyContainingType<ConfigureFubuMVC>().ToAllPackageAssemblies();
Actions.IncludeClassesSuffixedWithController();
Routes
.IgnoreControllerNamesEntirely()
.IgnoreMethodSuffix("Html")
.RootAtAssemblyNamespace();
// Match views to action methods by matching
// on model type, view name, and namespace
Views.TryToAttachWithDefaultConventions();
/*
// This line turns on the basic diagnostics and request tracing
IncludeDiagnostics(true);
// All public methods from concrete classes ending in "Controller"
// in this assembly are assumed to be action methods
Actions.IncludeClassesSuffixedWithController();
// Policies
Routes
.IgnoreControllerNamesEntirely()
.IgnoreMethodSuffix("Html")
.RootAtAssemblyNamespace();
// Match views to action methods by matching
// on model type, view name, and namespace
Views.TryToAttachWithDefaultConventions();
* */
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment