Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpers #1

Open
csainty opened this issue May 10, 2014 · 0 comments
Open

Helpers #1

csainty opened this issue May 10, 2014 · 0 comments

Comments

@csainty
Copy link
Owner

csainty commented May 10, 2014

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.

@csainty csainty added this to the 0.1.0 milestone May 10, 2014
@csainty csainty modified the milestones: 0.2.0, 0.1.0 Jun 19, 2014
@csainty csainty modified the milestones: 0.3.0, 0.2.0 Jul 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant