62e0960de0
Introduces a `ViewComponent::GlobalConfig` object that will be the source for global configuration going forward. Ideally in the future, this will only house options that universally affect ViewComponent regardless of whether components are sourced from an engine or not (e.g. enabling the capture compatibility patch), and more options can move to a component-local config. For these options, classes inheriting from `ViewComponent::Base` will want to override configuration themselves. This was initially written to support extracting the incoming strict_helpers_enabled? option, but applies to everything. |
||
---|---|---|
.devcontainer | ||
.github | ||
app | ||
docs | ||
gemfiles | ||
lib | ||
performance | ||
script | ||
spec | ||
test | ||
.erb-lint.yml | ||
.gitignore | ||
.rspec | ||
.rubocop.yml | ||
.standard.yml | ||
.tool-versions | ||
.vale.ini | ||
.yardopts | ||
Appraisals | ||
CHANGELOG.md | ||
CNAME | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE.txt | ||
README.md | ||
Rakefile | ||
SECURITY.md | ||
view_component.gemspec |
README.md
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
Documentation
See viewcomponent.org for documentation.
Contributing
This project is intended to be a safe, welcoming space for collaboration. Contributors are expected to adhere to the Contributor Covenant code of conduct. We recommend reading the contributing guide as well.
License
ViewComponent is available as open source under the terms of the MIT License.