This project is read-only.

Error when using Razor.Parse

Dec 9, 2011 at 12:09 AM

I ran this simple example from the website and I get the error below when it calls Razor.Parse. How can I fix this???

string template = "Hello @Model.Name! Welcome to Razor!";

 string result = Razor.Parse(template, new { Name = "World" });

error CS0234: The type or namespace name 'Markdown' does not exist in the namespace 'ServiceStack' (are you missing an assembly reference?)

Dec 16, 2011 at 10:12 AM


This doesn't really give me anything to work with. The template doesn't appear to reference the ServiceStack.Markdown, unless you've made a call to AddNamespaces() somewhere?