You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
each_row help can't be used in a {{else}}...{{/if}} block #261
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
Indeed, the each_row template has to be at the "top level" of a template (not nested in another block).
This limitation would be quite hard to overcome without major changes either in the template library we use or in the ability of SQLPage to stream contents to browsers efficiently.
So unfortunately, this limitation is unlikely to be lifted soon.
What was your use case for it? Maybe we can find an effective workaround?
Maybe we can improve the error message too to make the situation clear?
Activity
lovasoa commentedon Mar 10, 2024
Hello Olivier, and thanks for opening this!
Indeed, the each_row template has to be at the "top level" of a template (not nested in another block).
This limitation would be quite hard to overcome without major changes either in the template library we use or in the ability of SQLPage to stream contents to browsers efficiently.
So unfortunately, this limitation is unlikely to be lifted soon.
What was your use case for it? Maybe we can find an effective workaround?
Maybe we can improve the error message too to make the situation clear?
81reap commentedon Oct 29, 2026
I think this is still an issue
reproduction
On commit 616df27:
nix run .#reproduce -- repro_261 postgres v0.36.0 v0.47.0 tree