FuManchu
FuManchu copied to clipboard
Question: How to write a helper which support @first, @last, @index
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?
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