Skip to content

Instantly share code, notes, and snippets.

@thecodejunkie
Created June 26, 2011 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodejunkie/1048016 to your computer and use it in GitHub Desktop.
Save thecodejunkie/1048016 to your computer and use it in GitHub Desktop.
Adding custom view location conventions in Nancy
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