{"id":15890368,"url":"https://github.com/julien-meichelbeck/partial_parameters","last_synced_at":"2025-06-17T04:02:51.594Z","repository":{"id":56887490,"uuid":"98341882","full_name":"julien-meichelbeck/partial_parameters","owner":"julien-meichelbeck","description":"Validate required, optional or deprecated parameters of your Rails partials.","archived":false,"fork":false,"pushed_at":"2017-08-11T14:04:18.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T04:02:03.418Z","etag":null,"topics":["optional","parameters","partials","rails","validation"],"latest_commit_sha":null,"homepage":"","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/julien-meichelbeck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-25T19:20:56.000Z","updated_at":"2024-02-20T12:44:04.000Z","dependencies_parsed_at":"2022-08-21T00:50:47.668Z","dependency_job_id":null,"html_url":"https://github.com/julien-meichelbeck/partial_parameters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/julien-meichelbeck/partial_parameters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julien-meichelbeck%2Fpartial_parameters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julien-meichelbeck%2Fpartial_parameters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julien-meichelbeck%2Fpartial_parameters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julien-meichelbeck%2Fpartial_parameters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julien-meichelbeck","download_url":"https://codeload.github.com/julien-meichelbeck/partial_parameters/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julien-meichelbeck%2Fpartial_parameters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260288448,"owners_count":22986659,"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":["optional","parameters","partials","rails","validation"],"created_at":"2024-10-06T07:05:27.169Z","updated_at":"2025-06-17T04:02:51.568Z","avatar_url":"https://github.com/julien-meichelbeck.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PartialParameters\nMake your partials reusable and self-documented by validating the given parameters in development and test environments.\nIf a required parameter is missing or an unknown parameter is given, an exception will be raised.\n\n![](https://api.travis-ci.org/julien-meichelbeck/partial_parameters.svg?branch=master)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'partial_parameters'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install partial_parameters\n\nAnd you are ready to go!\n\n## Usage\nAt the top of your partials, simply call the method `partial_parameters` and list your required and optional parameters:\n\n\nErb example:\n```erb\n  \u003c% partial_parameters { required(:name); required(:age); optional(:height) }%\u003e\n```\n\nSlim example:\n```slim\n  - partial_parameters do\n    - required(:name)\n    - required(:age)\n    - optional(:height)\n```\n\n### Strict mode\nBy default strict mode is enabled and an error will be raised if an unknown parameter has been passed to the partial. Of course, you can disable the strict mode:\n```slim\n  - partial_parameters(strict: false) do\n    - required(:name)\n    - required(:age)\n    - optional(:height)\n```\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/julien-meichelbeck/partial_parameters.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulien-meichelbeck%2Fpartial_parameters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulien-meichelbeck%2Fpartial_parameters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulien-meichelbeck%2Fpartial_parameters/lists"}