I am creating a sample ASP.NET MVC 3 site using Razor as the view engine. The Razor syntax starts with a @ character, e.g., @RenderBody(). If I write @test on my .cshtml page, it gives me a parse error
CS0103: The name 'test' does not exist in the current context
How do I escape the '@' character?
@in braces. I managed to get this working by writing it this way:@(@new)