Trying to use Nustache to share client and server mustache templates, but Nustache is just not playing nicely with my app. I used the code straight out of their MVC application example in the source code but am getting an error every time I try to set or add the view engine. Here's a code snippet (from an action method, I've also tried adding the view engine globally in global.asax and had the same error):
ViewResult viewResult = View(new { test = "Jawesome" });
viewResult.ViewEngineCollection = new ViewEngineCollection
{
new NustacheViewEngine()
};
And here's the error:
[ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.]
System.Collections.Generic.List`1.Insert(Int32 index, T item) +62
MyController.Index() in C:\src\projects\myproject\myproject.Web\Controllers\MyController.cs:83
lambda_method(Closure , ControllerBase , Object[] ) +79
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +264
...