你的位置:首页 > ASP.net教程

[ASP.net教程]Nancy Scripts,CSS文件夹配置


public class Bootstrapper : DefaultNancyBootstrapper
{

protected override void ConfigureConventions(NancyConventions nancyConventions)
{
base.ConfigureConventions(nancyConventions);
nancyConventions.StaticContentsConventions.Clear();
nancyConventions.StaticContentsConventions.Add
(StaticContentConventionBuilder.AddDirectory("Content", "/Content"));
nancyConventions.StaticContentsConventions.Add
(StaticContentConventionBuilder.AddDirectory("Scripts", "/Scripts"));
}

}