{
"dependencies": {
"@hotwired/turbo": "^7.1.0",
}
}
Read the Turbo handbook
The turbo.ring
namespace provides middleware for both turbo-frame and
turbo-stream. Your HTML routes should make use of this middleware.
turbo.ring/wrap-turbo-frame
turbo.ring/wrap-turbo-stream
The turbo.core
ClojureScript namespaces provides a few wrapper functions for
event listeners and functions.
turbo.core/on-click!
turbo.core/on-before-visit!
turbo.core/on-visit!
turbo.core/on-submit-start!
turbo.core/on-before-fetch-request!
turbo.core/on-before-fetch-response!
turbo.core/on-submit-end!
turbo.core/on-before-cache!
turbo.core/on-before-render!
turbo.core/on-before-stream-render!
turbo.core/on-render!
turbo.core/on-load!
turbo.core/preview-visible?
turbo.core/visit!
turbo.core/clear-cache!
turbo.core/set-progress-bar-delay!
Released under the MIT License by Kevin William van Rooijen.