1

我已经引用了Nancy.Viewengines.DotLiquidDotLiquid但 NancyFx 响应中有一个错误:

Nancy.RequestExecutionException:哦,不!---> Nancy.ViewEngines.ViewNotFoundException: Unable to locate view 'index' 当前可用的视图引擎扩展: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 引擎?

4

0 回答 0