Releases: treagod/marten-turbo
Releases · treagod/marten-turbo
`TurboStream` can now use `Marten::Model`
Enhanced TurboStream Support and Improved TurboFrame Handling
Added
- New
MartenTurbo::TurboStream
class: Introduced a newTurboStream
class to streamline the creation of Turbo Streams. This class provides a convenient API to generate various Turbo Stream actions. - Turbo Handlers Enhancement: Turbo handlers now support a
turbo_stream
method. This method should return a string that will be rendered instead of a template. It takes precedence over theturbo_stream_name
attribute, offering greater flexibility in handling Turbo Stream responses. MartenTurbo::Handlers::TurboFrame
concern: Added a new concern, TurboFrame, which can be included to track Turbo-Frame requests. This enhancement simplifies the detection and handling of Turbo Frame specific requests. This adds theturbo_frame_request?
andturbo_frame_request_id
methods to your handler.
Changed
- RecordDelete Enhancement: The RecordDelete handler now forwards a
DELETE
request to post, improving consistency and reliability in handling delete operations.
Breaking Changes
- End Tag Update: The end tag for Turbo Streams has been updated from
{% end_turbostream %}
to{% end_turbo_stream %}
. This change aligns the syntax with Marten’s end tags, enhancing readability and consistency across the codebase.
Update shard name
Update shard name
Initial release
Introduces new Marten handlers which helps with handling turbo streams.