@using WebCms.Utility @model Boolean? @{ var htmlAttributes = new RouteValueDictionary(); if (ViewBag.@class != null) { htmlAttributes.Add("class", ViewBag.@class); } }