-
- Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Something like:
Turbo::StreamsBuilder.render do |turbo_stream| turbo_stream.append(...) turbo_stream.console_log(...) turbo_stream.morph(...) endWhich 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 endMetadata
Metadata
Assignees
Labels
No labels