{"id":13769926,"url":"https://github.com/rootstrap/htmx-rails","last_synced_at":"2025-04-07T07:08:13.547Z","repository":{"id":55086537,"uuid":"320659610","full_name":"rootstrap/htmx-rails","owner":"rootstrap","description":"The easiest way to work with HTMX in your Rails app","archived":false,"fork":false,"pushed_at":"2024-07-12T12:49:25.000Z","size":76,"stargazers_count":112,"open_issues_count":3,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-11T23:19:41.269Z","etag":null,"topics":["htmx","rails","ruby"],"latest_commit_sha":null,"homepage":"https://www.rootstrap.com/","language":"Ruby","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/rootstrap.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-12-11T19:01:07.000Z","updated_at":"2024-10-09T23:53:45.000Z","dependencies_parsed_at":"2024-08-03T17:02:44.408Z","dependency_job_id":null,"html_url":"https://github.com/rootstrap/htmx-rails","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"c42973f4e5d23543f0adb7b7ab39f68c07013348"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Fhtmx-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Fhtmx-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Fhtmx-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Fhtmx-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootstrap","download_url":"https://codeload.github.com/rootstrap/htmx-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608151,"owners_count":20965952,"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":["htmx","rails","ruby"],"created_at":"2024-08-03T17:00:32.782Z","updated_at":"2025-04-07T07:08:13.523Z","avatar_url":"https://github.com/rootstrap.png","language":"Ruby","readme":"# Htmx::Rails\n\n[HTMX](https://htmx.org/) ruby gem for Ruby on Rails.\n\n## Installation\n\n### Gem installation\n\nAdd `htmx-rails` to your `Gemfile`:\n\n```ruby\ngem 'htmx-rails'\n```\n\nAnd then execute in your shell:\n\n```\nbundle install\n```\n\nOr install it yourself by executing:\n\n```\ngem install htmx-rails\n```\n\n### After installing the gem, run the installer:\n\n```\nrails g htmx:install\n```\n\n## Usage\n\n\n```HTML\n\u003c!-- have a button POST via AJAX --\u003e\n\u003cbutton hx-post=\"/clicked\" hx-swap=\"outerHTML\"\u003e\n  Click Me\n\u003c/button\u003e\n```\n\n### Read the [docs](https://htmx.org/docs/) for a more in-depth introduction.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/rootstrap/htmx-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/rootstrap/htmx-rails/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Htmx::Rails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rootstrap/htmx-rails/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":["Ruby","Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootstrap%2Fhtmx-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootstrap%2Fhtmx-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootstrap%2Fhtmx-rails/lists"}