You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New MartenTurbo::TurboStream class: Introduced a new TurboStream 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 the turbo_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 the turbo_frame_request? and turbo_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.