Пример #1
0
//        public void Visit(ErrorNode errorNode)
//        {
//            AppendTextToCurrentAccumulator(errorNode.LiquidError.ToString());
//        }

        public void Visit(IfChangedBlockTag ifChangedBlockTag)
        {
            // This maintains state, so there's only one.
            if (_isChangedRenderer == null)
            {
                _isChangedRenderer = new IfChangedRenderer(this);
            }
            AppendTextToCurrentAccumulator(_isChangedRenderer.Next(ifChangedBlockTag.UniqueId, ifChangedBlockTag.LiquidBlock));
        }
Пример #2
0
//        public void Visit(ErrorNode errorNode)
//        {
//            _result += errorNode.ToString();
//        }

        public void Visit(IfChangedBlockTag ifChangedBlockTag)
        {
            _result += ifChangedBlockTag.ToString();
        }