{"id":16679669,"url":"https://github.com/phoet/partially_useful","last_synced_at":"2025-09-29T07:30:26.223Z","repository":{"id":16918213,"uuid":"19679531","full_name":"phoet/partially_useful","owner":"phoet","description":":bookmark_tabs: :eyes: Helps identifying partials in verbose HTML source code.","archived":false,"fork":false,"pushed_at":"2019-05-15T18:01:34.000Z","size":46,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T19:12:12.028Z","etag":null,"topics":["partials","rails","ruby","view"],"latest_commit_sha":null,"homepage":"https://github.com/phoet/partially_useful","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phoet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-11T22:49:24.000Z","updated_at":"2022-04-08T15:46:50.000Z","dependencies_parsed_at":"2022-09-13T18:21:52.925Z","dependency_job_id":null,"html_url":"https://github.com/phoet/partially_useful","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoet%2Fpartially_useful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoet%2Fpartially_useful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoet%2Fpartially_useful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phoet%2Fpartially_useful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phoet","download_url":"https://codeload.github.com/phoet/partially_useful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234598341,"owners_count":18858095,"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":["partials","rails","ruby","view"],"created_at":"2024-10-12T13:36:45.991Z","updated_at":"2025-09-29T07:30:20.801Z","avatar_url":"https://github.com/phoet.png","language":"Ruby","readme":"# PartiallyUseful\n\n[![Build Status](https://img.shields.io/travis/phoet/partially_useful/master.svg)](https://travis-ci.org/phoet/partially_useful)\n\nHTML source code is very verbose and can be a pain in the ass to find a specific part on big pages.\n\nFinding the origin of a piece of HTML in the Rails `app/views` directory can be tedious and error prone.\n\nAdding this gem to your Rails application adds HTML comments at development time, so it's easy to find the right partials.\n\n```html\n\u003c!-- start rendering 'some_partial' with locals '[:all, :assigned, :locals]'--\u003e\n\u003cdiv class=\"hello\"\u003e\n    \u003cdiv class=\"world\"\u003e\n      [...]\n    \u003c/div\u003e\n\u003c/div\u003e\n\u003c!-- end rendering 'some_partial' with locals '[:all, :assigned, :locals]'--\u003e\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'partially_useful', group: 'development'\n```\n\n## Usage\n\nThe plugin is enabled by default, but you can disable it in your Rails configuration:\n\n```ruby\n# config/environments/development.rb\nconfig.partially_useful = false\n```\n\n## Caveats\n\nHTML comments might subtly break your application when partials are used out of the usual HTML rendering context (JS, CSS etc).\n\nIf you run into any problems, make sure to disable the gem and restart your Rails server.\n\n## Supported Ruby and Rails versions\n\nVersion 6.0.x has support for Rails 6.0.x.\nVersion 5.1.0 has support for Rails 5.x and Ruby 2.x.\nOlder Rails and Ruby versions are supported by the 0.x releases.\n\n## Contributing\n\n1. Fork it ( https://github.com/phoet/partially_useful/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## License\n\nSee [LICENSE.md](https://github.com/phoet/partially_useful/blob/master/LICENSE.md).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/phoet/partially_useful/blob/master/CHANGELOG.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoet%2Fpartially_useful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphoet%2Fpartially_useful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoet%2Fpartially_useful/lists"}