public DefaultExpressionCompiler(ICompiledHandlebarsConfiguration configuration, ClosureFeature closureFeature)
 {
     _closureFeature       = closureFeature;
     _templateClosure      = closureFeature?.TemplateClosure;
     _closure              = closureFeature?.ClosureInternal;
     _expressionMiddleware = configuration.ExpressionMiddleware;
 }
Exemplo n.º 2
0
        /// <inheritdoc />
        public void CompilationCompleted()
        {
            TemplateClosure?.Build();

            foreach (var child in Children)
            {
                child.CompilationCompleted();
            }
        }
Exemplo n.º 3
0
 public ClosureVisitor(ExpressionContainer <object[]> arg, TemplateClosure templateClosure)
 {
     _templateClosure    = templateClosure;
     _templateClosureArg = arg;
 }
Exemplo n.º 4
0
 public ClosureExpressionMiddleware(TemplateClosure closure, ExpressionContainer <object[]> closureArg)
 {
     _closure    = closure;
     _closureArg = closureArg;
 }
Exemplo n.º 5
0
 /// <inheritdoc />
 public void CompilationCompleted()
 {
     TemplateClosure?.Build();
 }