Ejemplo n.º 1
0
            public override string TransformRange(string stringToTransform, string commandContent, Dictionary <string, string> variables)
            {
                string variableName = commandContent;

                if (variables.ContainsKey(variableName))
                {
                    return(variables[variableName]);
                }
                return(StringTemplate.CreateVariableBlock(variableName)); // keep command intact by recreating it, so that it can be resolved based on variable at higher level in the tree (note that the higher levels in the tree are resolved afterward)
            }