You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I get this exception when compiling it with Handlebars.Net:
System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1source)
at HandlebarsDotNet.Compiler.IteratorBlockAccumulatorContext.IsClosingElement(Expressionitem)
at HandlebarsDotNet.Compiler.BlockAccumulator.AccumulateBlock(IEnumerator`1enumerator,BlockAccumulatorContextcontext)
at HandlebarsDotNet.Compiler.BlockAccumulator.AccumulateBlock(IEnumerator`1enumerator,BlockAccumulatorContextcontext)
at HandlebarsDotNet.Compiler.BlockAccumulator.AccumulateBlock(IEnumerator`1enumerator,BlockAccumulatorContextcontext)
at HandlebarsDotNet.Compiler.BlockAccumulator.ConvertTokens(IEnumerable`1sequence)+MoveNext()
at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1enumerable)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1source)
at HandlebarsDotNet.Compiler.ExpressionBuilder.ConvertTokensToExpressions(IEnumerable`1tokens)
at HandlebarsDotNet.Compiler.HandlebarsCompiler.Compile(TextReadersource)
at HandlebarsDotNet.Handlebars.HandlebarsEnvironment.Compile(Stringtemplate)
Activity
rexm commentedon May 26, 2019
The
as |alias|syntax isn't supported yet.johnknoop commentedon May 26, 2019
I see. Thanks!
Extreme refactoring/enhancements