hotwire_demo()
outputs a demonstration of all the features enabled by this
package, across Turbo Drive, Turbo Streams, Turbo Frames, and Stimulus.Hotwire
Plugin $router()
creates an HTML route with combined Turbo and Stimulus
assets based on the configuration of those Plugins.add_data()
and set_data()
allow easy modification of data tags
which are heavily used to annotate HTML.Turbo
Plugin app_version
allows one to refresh all clients during version
changes.$router()
creates an HTML router with Turbo assets plugged in$router_stream()
creates a POST HTML router that returns a Stream$send()
and clients
to manage established websocket connections.$visit()
initiates an application visit.$listen()
adds a listener to specific turbo events via websocket$clear()
clears the turbo cache$stream()
sends a turbo stream to the client via websocket$assets()
builds the assets conforming to the HTML pluginturbo_frame()
for constructing frames with tagsturbo_link()
for creating turbo-enabled linksturbo_listener()
for constructing listeners for turbo messagesturbo_stream()
for constructing streams with tagsturbo_enable()
and turbo_disable()
enable turbo for specific tags.turbo_assets()
and turbo_config()
file to include Turbo JS assets.turbo_target()
for changing the frame target of the element (form or a).turbo_noeval()
prevents scripts from being evaluated on each load.turbo_data()
adds data-
attributes turbo_permanent()
ensures that elements persist across turbo loads.Stimulus
Plugin $router()
creates an HTML router with Stimulus assets plugged in.$assets()
builds the assets conforming to the HTML pluginss_control()
to attach a controller ss_target()
to make this a target accessible to the controllerss_action()
to attach a trigger for an actionss_use_controller()
generates a JS controller from a templatestimulus_assets()
and include Stimulus JS Assets.NEWS.md
file to track changes to the package.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.