I have a MVC3 HtmlHelper extension like this:
public static MvcHtmlString ShowInfoBar(this HtmlHelper helper, string message, InfoMessageType messageType)
You need to escape the curly braces:
{{ and }}
{{
}}
String.Format(@"", message, messageType.ToString().ToLower())