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
- feat: Access params ActionMailer::Preview style
- Components with only variant template crashes the app
- Add support for using view components in rails engine
- Rails Engine support
- Use `setup-ruby`'s native bundle caching in our workflows
- Defer to built-in action caching
- Add `output_preamble` to match existing `output_postamble`
- Allow to define the view_context without rendering the component
- Capybara's within helper method not working
- Add `config.include_application_routes` to allow skipping inclusion of application routes
- Docs
- Performance::NewInlineComponent#initialize
- Performance::NewInlineComponent::NestedComponent#initialize
- Rspec::Generators::ComponentGenerator#spec_component_path
- ViewComponent::Base#output_preamble
- ViewComponent::Base#safe_output_preamble
- ViewComponent::Base#compiler
- ViewComponent::Base#safe_output_postamble
- ViewComponent::Base#safe_render_template_for
- ViewComponent::Base#maybe_escape_html
- ViewComponent::Compiler#renders_template_for_variant?