Example #1
0
        /****************************************************************************/
        internal string Transform(string data, TransformerContext context, ExtensionFunctions extensionFunctions)
        {
            var output  = JObject.Parse("{}");
            var expando = data.JsonToExpando();

            this.Evaluate(output, new ExpressionContext(expando, "__root", context, extensionFunctions, templates: this.Templates, functions: this.Functions));

            return(output.ToString());
        }
Example #2
0
 /****************************************************************************/
 public string Transform(string data, TransformerContext context = null)
 {
     return(_transform.Transform(data, context, _extensionFunctions));
 }