private static object Convert(object item) { var commentToken = item as CommentToken; if (commentToken != null) { return(HandlebarsExpression.Comment(commentToken.Value)); } else if (item is LayoutToken) { return(HandlebarsExpression.Comment(null)); } else { return(item); } }