FuManchu icon indicating copy to clipboard operation
FuManchu copied to clipboard

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

Open mattbrailsford opened this issue 9 years ago • 1 comments

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?

mattbrailsford avatar Sep 08 '16 15:09 mattbrailsford

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

Antaris avatar Sep 16 '16 07:09 Antaris