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

Question: How to write a helper which support @first, @last, @index #16

Open
mattbrailsford opened this issue Sep 8, 2016 · 1 comment

Comments

@mattbrailsford
Copy link

Hi, I want to define a helper which can perform a loop, and as part of this, I'd like to pass in the @FIRST, @last and @Index variables. I notice this is possible in the EnumberableRenderer, but I'm not sure how I go about implementing this in an helper declared inline using the RegisterHelper interface.

Do you have an example of how to implement this?

@Antaris
Copy link
Collaborator

Antaris commented Sep 16, 2016

Hi @mattbrailsford

If I can resolve this, this should fix #17 too :-) It'll require an extension to the RegisterHelper interface where you can specificy those variables I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants