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
StreamsBuilder
Something like:
Turbo::StreamsBuilder.render do |turbo_stream| turbo_stream.append(...) turbo_stream.console_log(...) turbo_stream.morph(...) end
Which would return one string like:
<turbo-stream action="append" ...>...</turbo-stream> <turbo-stream action="console_log" ...>...</turbo-stream> <turbo-stream action="morph" ...>...</turbo-stream>
or inside a model:
class Post < ApplicationRecord broadcast_turbo_stream_actions do |turbo_stream| turbo_stream.append(...) turbo_stream.console_log(...) turbo_stream.morph(...) end end
The text was updated successfully, but these errors were encountered:
A POC of this has been implemented marcoroth/turbo_power-rails#18, but in my option it makes more sense to have this class here in turbo-ruby.
turbo-ruby
Sorry, something went wrong.
No branches or pull requests
Something like:
Which would return one string like:
or inside a model:
The text was updated successfully, but these errors were encountered: