I am creating a sample ASP.NET MVC 3 site using Razor as view engine. The razor syntax starts with @ character e.g. @RenderBody(). If I write @test
@
@RenderBody()
I just had the same problem. I declared a variable putting my text with the @.
@{ var twitterSite = "@MyTwitterSite"; } ...