Created
June 26, 2011 21:52
-
-
Save thecodejunkie/1048016 to your computer and use it in GitHub Desktop.
Adding custom view location conventions in Nancy
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 CustomBootstrapper : DefaultNancyBootstrapper | |
{ | |
protected override void InitialiseInternal(TinyIoC.TinyIoCContainer container) | |
{ | |
this.Conventions.ViewLocationConventions.Add((viewName, model, context) => | |
{ | |
return string.Concat("/custom/", viewName); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment