Veil
Veil copied to clipboard
Helpers
To support features like ExpandPath and AntiForgeryToken from SuperSimple I want to add a Helpers feature.
- Add a HelperSyntaxTreeNode that has the name of the helper
- Add an IDictionary<string, XXX> to the IVeilContext where helpers are registered
- Call out to helpers as needed during compilation
- Throw in the NullVeilContext
Parameters Handlebars requires that helps can accept parameters. Preferably many. An efficient way of calling helpers with parameters will be needed. To avoid string allocations, the helpers should probably take the TextWriter as a parameter.