view_component
https://github.com/viewcomponent/view_component
Ruby
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
7 Subscribers
Add a CodeTriage badge to view_component
Help out
- Issues
- Track slot classes, method-built components and included modules in cache digests- #1
- Skip binary Ruby sources when scanning cache digest dependencies
- Render the template for the current format when a lookup context changes formats
- Cut ViewComponent's share of boot by a quarter: look sidecar files up once while eager loading
- Fix `news/new` cache digest errors for component renders
- 4.18+ cache digest precompute logs false news/new dependency for render Component.new
- Rails 8.2: `herb:check` does not reach sidecar templates
- Add devtools
- Docs
- ViewComponent::TestHelpers#with_format
- ViewComponent::TestHelpers#rendered_json
- ViewComponent::Collection#format
- ViewComponent::Config.registered_rails_engines_with_previews
- ViewComponent::Config.default_rails_engines_preview_paths
- ViewComponent::Config.default_rails_preview_paths
- ViewComponent::SlotableDefault#get_slot
- Performance::NewInlineComponent#initialize
- Performance::NewInlineComponent::NestedComponent#initialize
- Rspec::Generators::ComponentGenerator#spec_component_path