Skip to content
New issue

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

Introduce unless to bypass futurism completely #118

Closed
julianrubisch opened this issue Nov 9, 2021 · 0 comments · Fixed by #119
Closed

Introduce unless to bypass futurism completely #118

julianrubisch opened this issue Nov 9, 2021 · 0 comments · Fixed by #119
Milestone

Comments

@julianrubisch
Copy link
Contributor

Feature Request

When using CableReady's updates_for mechanism in combination with futurism, you often don't want to render the placeholders after triggering an update. The only way to do this right now is manually by adding a conditional:

<% if bypass_futurism? %>
  <%= render  ... %>
<% else %>
  <%= futurize ... %>
<% end %>

The proposed API looks like this:

<%= futurize ... unless: bypass_futurism? %> ... <% end %>

In fact everything is already present from the "skip in test" feature, so this should be a quick one.

@julianrubisch julianrubisch added this to the 1.2.0 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant