- public delegate void HandlebarsHelper (TextWriter output, object root, dynamic context, params object[] arguments);
- public delegate void HandlebarsBlockHelper(TextWriter output, object root, HelperOptions options, dynamic context, params object[] arguments);
I used this to access the main data structure from the calling in the handler functions. Before this, the data structure have to be "public static" or the scripts must have an weird @root parameter.