private static object Convert(object item) { if (item is CommentToken commentToken) { return(HandlebarsExpression.CommentExpression(commentToken.Value)); } if (item is LayoutToken) { return(HandlebarsExpression.CommentExpression(null)); } return(item); }