/// <summary>
 /// Initialise any conventions this class "owns".
 /// </summary>
 /// <param name="conventions">Convention object instance.</param>
 public void Initialise(NancyConventions conventions)
 {
     conventions.StaticContentsConventions = new List <Func <NancyContext, string, Response> >
     {
         StaticContentConventionBuilder.AddDirectory("/.")
     };
 }
 /// <summary>
 /// Adds a directory-based convention for static convention.
 /// </summary>
 /// <param name="conventions">The conventions to add to.</param>
 /// <param name="requestedPath">The path that should be matched with the request.</param>
 /// <param name="contentPath">The path to where the content is stored in your application, relative to the root. If this is <see langword="null" /> then it will be the same as <paramref name="requestedPath"/>.</param>
 /// <param name="allowedExtensions">A list of extensions that is valid for the conventions. If not supplied, all extensions are valid.</param>
 public static void AddDirectory(this IList <Func <NancyContext, string, Response> > conventions, string requestedPath, string contentPath = null, params string[] allowedExtensions)
 {
     conventions.Add(StaticContentConventionBuilder.AddDirectory(requestedPath, contentPath, allowedExtensions));
 }