Exemple #1
0
 public IEnumerable <object> ConvertTokens(IEnumerable <object> sequence)
 {
     foreach (var item in sequence)
     {
         if (item is StaticToken staticToken)
         {
             if (staticToken.Value != string.Empty)
             {
                 yield return(HandlebarsExpression.StaticExpression(((StaticToken)item).Value));
             }
         }
         else
         {
             yield return(item);
         }
     }
 }