Open mruslan97 opened 1 year ago
Hi all! I'm trying to write a block helper which fill context var. Root access example:
handlebars.RegisterHelper("example", (output, options, context, arguments) => { count++; Console.WriteLine($"helper calls: {count}"); var root = (JObject)options.Data["root"]; root["someVar"] = root["someVar"].ToString() + count;
In this case 27 calls
But result is different
What is the reason and how do I fix this?
Hi all! I'm trying to write a block helper which fill context var. Root access example:
In this case 27 calls![](https://i.imgur.com/e1eEjso.png)
But result is different![](https://i.imgur.com/2cbjaqk.png)
What is the reason and how do I fix this?