Skip to content

Fatal error with custom helper chained else if nested to deep #2

@johannesdb

Description

@johannesdb

@theodorejb Just tried your fork to see if the fix also handles nested custom helper if-else if statements.

I found this bug in LigthNCandy: zordius/lightncandy#313

I have a custom helper: IfEquals (actually using the demo code for a helper from your repo), but when if I do a custom helper chained else blocks that is nested to many other helpers (if's and a custom contains) I get a fatal error:
Fatal error: Uncaught Exception: Unexpect token {{/ifEquals}} ! Previous token {{#[if]}} is not closed

If I replace the {{else ifEquals expression}} with {{else}}{{ifEquals expression}} I do not get an error

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