A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
Перейти к файлу
Simon Fish 62e0960de0
Make accommodations for component-local config
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.
2024-10-21 11:31:19 +01:00
.devcontainer Set up Codespaces for bug replication (#1200) 2021-12-14 19:56:38 +00:00
.github use latest upload/download actions (#2088) 2024-09-04 16:34:29 -06:00
app Make accommodations for component-local config 2024-10-21 11:31:19 +01:00
docs Make accommodations for component-local config 2024-10-21 11:31:19 +01:00
gemfiles Add support for rendering turbo stream tags (#1227) 2024-08-20 14:07:12 -06:00
lib Make accommodations for component-local config 2024-10-21 11:31:19 +01:00
performance Fix inline component throws error with strip_trailing_whitespace (#2015) 2024-04-23 23:49:49 +00:00
script Move ViewComponent to separate GitHub organization (#1496) 2022-08-31 11:35:09 -06:00
spec Make it easier to run coverage reports locally (#1750) 2023-05-23 09:24:40 -06:00
test Make accommodations for component-local config 2024-10-21 11:31:19 +01:00
.erb-lint.yml add ERBLint to enforce a few basic rules (#994) 2021-07-01 10:35:29 -06:00
.gitignore Clean up console warnings when running tests (#1933) 2023-12-15 16:13:24 -07:00
.rspec Add support for RSpec to previews as test cases (#1408) 2022-07-18 10:31:58 -06:00
.rubocop.yml Ensure HTML output safety (#1950) 2024-01-04 11:25:54 -08:00
.standard.yml run rubocop against markdown (#1699) 2023-03-31 14:23:56 -06:00
.tool-versions Add support for ruby3.3 (#1948) 2024-01-02 10:59:00 -07:00
.vale.ini Add file consistency linters (#1206) 2021-12-14 11:39:00 -07:00
.yardopts Dynamically generate configuration docs using YARD (#968) 2021-06-17 12:36:31 -06:00
Appraisals Add support for rendering turbo stream tags (#1227) 2024-08-20 14:07:12 -06:00
CHANGELOG.md Link to instead of symlink (#1517) 2022-09-14 10:00:42 -06:00
CNAME Add file consistency linters (#1206) 2021-12-14 11:39:00 -07:00
CODE_OF_CONDUCT.md Move root docs into site, add symlinks (#972) 2021-06-17 15:26:00 -06:00
CONTRIBUTING.md Move root docs into site, add symlinks (#972) 2021-06-17 15:26:00 -06:00
Gemfile set default ruby version (#2075) 2024-08-20 14:46:20 -06:00
Gemfile.lock Relax ActiveSupport version now that Rails 8 beta is available (#2140) 2024-10-21 10:29:07 +02:00
LICENSE.txt Update gemspec (#1472) 2022-08-15 16:38:26 -06:00
README.md Revert "Update logo code in README (#1475)" (#1480) 2022-08-18 14:31:10 -06:00
Rakefile Make accommodations for component-local config 2024-10-21 11:31:19 +01:00
SECURITY.md Create SECURITY.md (#1748) 2023-05-10 11:58:52 +02:00
view_component.gemspec Relax ActiveSupport version now that Rails 8 beta is available (#2140) 2024-10-21 10:29:07 +02:00

README.md

ViewComponent logo ViewComponent logo

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.