We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to pass locals when rendering a collection
In order to stay as close as possible to the render method in Rails it would make sense to support the passing of locals when rendering a collection.
render
While you can do this with render:
<%= render partial: 'items/card', collection: @cards, as: :card, locals: { selected: true } %>
You can't do this with futurize:
futurize
<%= futurize partial: 'items/card', collection: @cards, as: :card, extends: :div, locals: { selected: true } do %> <div class="spinner"></div> <% end %>
To most logical would be (as described above):
The text was updated successfully, but these errors were encountered:
d7db0c3
Resolves stimulusreflex#27
Successfully merging a pull request may close this issue.
Feature Request
Allow to pass locals when rendering a collection
Is your feature request related to a problem?
In order to stay as close as possible to the
render
method in Rails it would make sense to support the passing of locals when rendering a collection.While you can do this with
render
:You can't do this with
futurize
:Describe the solution you'd like
To most logical would be (as described above):
The text was updated successfully, but these errors were encountered: