Skip to content

Support Handlebars syntax for referencing array element #187

Description

@CrisisSDK

Squiffy now has support for arrays, which is very nice. However you cannot currently retrieve an element from an array by index.

When trying {{someArray.[1]}} to get the second element of an array, Squiffy complains that {{someArray.{{passage "1"}}}} doesn't make sense.

This indicates a deeper problem: Squiffy is converting things in square brackets to a passage or section link within handlebars helpers when it shouldn't be doing so.

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

    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