diff --git a/source/Handlebars/Compiler/HandlebarsCompiler.cs b/source/Handlebars/Compiler/HandlebarsCompiler.cs index fbf63a64..2cb6a040 100644 --- a/source/Handlebars/Compiler/HandlebarsCompiler.cs +++ b/source/Handlebars/Compiler/HandlebarsCompiler.cs @@ -21,7 +21,7 @@ public static TemplateDelegate Compile(ExtendedStringReader source, CompilationC createdFeatures[index].OnCompiling(configuration); } - var tokens = Tokenizer.Tokenize(source).ToArray(); + var tokens = Tokenizer.Tokenize(source); var expressions = ExpressionBuilder.ConvertTokensToExpressions(tokens, configuration); var action = FunctionBuilder.Compile(expressions, compilationContext, out var decorators);