Skip to content

Question: How to create a custom helper with access to @index #151

Description

@mattbrailsford

Hi, I want to create a range helper such that I can do the following

{{#range 1 10}}
    <h1>{{@index}}</h1>
{{/range}}

but I can't figure out how you create a custom helper with access to the @index parameter, can anyone point me in the right direction?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions