{"id":17679923,"url":"https://github.com/sbsoftware/crumble-stimulus","last_synced_at":"2025-06-14T06:33:12.308Z","repository":{"id":210306694,"uuid":"726247706","full_name":"sbsoftware/crumble-stimulus","owner":"sbsoftware","description":"Seamless integration of stimulus.cr into crumble","archived":false,"fork":false,"pushed_at":"2025-02-18T20:01:24.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T21:21:55.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T21:24:11.000Z","updated_at":"2025-02-18T20:01:28.000Z","dependencies_parsed_at":"2024-03-16T12:23:36.247Z","dependency_job_id":"5de60920-6594-402f-810d-aa8c8bd78004","html_url":"https://github.com/sbsoftware/crumble-stimulus","commit_stats":null,"previous_names":["sbsoftware/crumble-stimulus"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fcrumble-stimulus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fcrumble-stimulus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fcrumble-stimulus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fcrumble-stimulus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbsoftware","download_url":"https://codeload.github.com/sbsoftware/crumble-stimulus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365640,"owners_count":20765546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T09:04:43.669Z","updated_at":"2025-03-30T18:47:53.868Z","avatar_url":"https://github.com/sbsoftware.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crumble-stimulus\n\nSeamless integration of [stimulus.cr](https://github.com/sbsoftware/stimulus.cr) into [crumble](https://github.com/sbsoftware/crumble), providing a JS module that includes all your `Stimulus::Controller`s that is automatically added to your layout template.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     crumble-stimulus:\n       github: sbsoftware/crumble-stimulus\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\n# make sure this comes before you require any controllers you want to include,\n# otherwise they'll be missing\nrequire \"crumble-stimulus\"\n# or wherever your Stimulus controllers are\nrequire \"./stimulus_controllers/*\"\n```\n\nThe `Crumble::StimulusControllers` script is automatically added to any template inheriting from the generic `ToHtml::Layout`.\n\n### Custom Layout\n\nIf you don't use a layout based on `ToHtml::Layout`, you'll have to include the `Crumble::StimulusControllers` script manually:\n\n```crystal\nhtml do\n  head do\n    # [...]\n    Crumble::StimulusControllers\n    # [...]\n  end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbsoftware%2Fcrumble-stimulus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbsoftware%2Fcrumble-stimulus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbsoftware%2Fcrumble-stimulus/lists"}