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"));
}

}

上一篇:Java处理excel文件


下一篇:python一个注意的地方