我引用了Nancy.Viewengines.DotLiquid
和DotLiquid
,但NancyFx响应中存在错误:
Nancy.RequestExecutionException:哦,不! ---> Nancy.ViewEngines.ViewNotFoundException:无法找到视图'索引' 目前可用的视图引擎扩展:sshtml,html,htm 检查的位置:views / Index / index-zh-CN,views / index / index,Index / index-zh-CN,Index / index,views / index-zh-CN,views / index,index-zh-CN,index
this.ViewEngines.ToList()
只有Nancy.ViewEngines.SuperSimpleViewEngine.SuperSimpleViewEngineWrapper
。
如何为nancy设置dotliquid引擎?