crumble-stimulus
Version, currently 0.4.19 versions
github.com/sbsoftware/crumble-stimulus
Seamless integration of stimulus.cr into crumble
Nothing has been indexed for 0.4.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
crumble-stimulus:
github: sbsoftware/crumble-stimulus
version: ~> 0.4.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
crumble-stimulus
Seamless integration of stimulus.cr into crumble, providing a JS module that includes all your Stimulus::Controllers that is automatically added to your layout template.
Installation
-
Add the dependency to your
shard.yml:dependencies: crumble-stimulus: github: sbsoftware/crumble-stimulus -
Run
shards install
Usage
# make sure this comes before you require any controllers you want to include,
# otherwise they'll be missing
require "crumble-stimulus"
# or wherever your Stimulus controllers are
require "./stimulus_controllers/*"
The Crumble::StimulusControllers script is automatically added to any template inheriting from the generic ToHtml::Layout.
Custom Layout
If you don't use a layout based on ToHtml::Layout, you'll have to include the Crumble::StimulusControllers script manually:
html do
head do
# [...]
Crumble::StimulusControllers
# [...]
end
end
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.1- Tagged
- Mar 3, 2026
- Commit
c07875d2c789- Indexed
- not yet
Dependents
Repository
github.com/sbsoftware/crumble-stimulus
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 18, 2026
- Synced
- Aug 18, 2026
- Versions
- 9