How can I fix this and make my .cshtml compile?
Summarize the problem I have an existing NancyFX 1.4.4 web application that uses Razor. It is working. I added a List of objects to my existing Model and referenced the List in my .cshtml file using @Model.Things, @Each.Model.Things, @Current.Property1, and @EndEach, but my .cshtml's Razor compilation fails with these errors:
Provide details and any research
I added this to my .cshtml, which does not error,
alert("@Model.Things");and displays:
System.Collections.Generic.List`1[MyNamespace.Thing]
This is the .cshtml code that causes the compilation error:
@Each.Model.Things <option value="@Current.Property1">blah</option> @EndEach
When appropriate, describe what you’ve tried
These are not Razor elements. They are defined in the Super-Simple-View-Engine itself. See the @Current definition in SuperSimpleViewEngine.cs and its usage in the SuperSimpleViewEngine demo.