turbo-ruby icon indicating copy to clipboard operation
turbo-ruby copied to clipboard

Turbo helpers without the requirement for Rails

Results 3 turbo-ruby issues
Sort by recently updated
recently updated
newest added

Something like: ```ruby Turbo::StreamsBuilder.render do |turbo_stream| turbo_stream.append(...) turbo_stream.console_log(...) turbo_stream.morph(...) end ``` Which would return one string like: ```html ... ... ... ``` or inside a model: ```ruby class Post <...

First, we add a `turbo` helper in Rails views, so we can do: ```ruby Turbo::Elements::TurboStream.new(action: "morph", target: "post_1", view_context: self, partial: "posts/post", locals: { post: @post }) turbo.stream action: "morph",...

Currently a `Turbo::Elements::TurboStream` element takes arbitrary attributes which get rendered on the element via the `attributes` keyword. The `**rendering` splat is used for taking in arguments for rendering partials. Ideally...