Skip to content

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

@mattbrailsford

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?

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