首页 > 学院 > 开发设计 > 正文

NancyScripts,CSS文件夹配置

2019-11-14 14:21:31
字体:
来源:转载
供稿:网友

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

}


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表