Skip to content

each_row help can't be used in a {{else}}...{{/if}} block #261

Open
@olivierauverlot

Description

@olivierauverlot

Introduction

each_row helper can't be used in a {{else}}...{{/if}} block

To Reproduce

<div>
{{#if menu}}
A menu
{{else}}
    {{#each_row}}
        {{title}}<br>
    {{/each_row}}
{{/if}}
</div>
select
    'foo' as component;
select
    'a' as title;
select
    'b' as title;
select
    'c' as title;

Actual behavior

I got the error message :

Sorry, but we were not able to process your request. 

Failed to create a render context from the header context.: Error rendering "Unnamed template" line 5, col 5: Helper not found each_row: Helper not found each_row

Version information

  • OS: Linux (ChromeOS)
  • none
  • SQLPage Version : 0.19.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions