Exemplo n.º 1
0
 public void Visit(CaptureBlockTag captureBlockTag)
 {
     _result += captureBlockTag.ToString();
 }
Exemplo n.º 2
0
 public void Visit(CaptureBlockTag captureBlockTag)
 {
     String capturedText = "";
     //var hiddenVisitor = new RenderingVisitor(_astRenderer, _templateContext, str => capturedText += str);
     PushTextAccumulator(str => capturedText += str);
     StartWalking(captureBlockTag.RootContentNode);            
     _templateContext.SymbolTableStack.DefineGlobal(captureBlockTag.VarName, new StringValue(capturedText) );
     PopTextAccumulator();
 }