Skip to content

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

@mattbrailsford

Description

@mattbrailsford

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions