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![CodeTriage badge for viewcomponent/view_component](/viewcomponent/view_component/badges/users.svg?count=7)
Help out
- Issues
- Make most configuration local to component instances
- Support opt-in Nokogiri HTML5 parsing
- Add Rubycritic Gem
- Remove respond_to? check
- Problem with translations for components, defined in a gem (engine) and used in Rails application
- Add failing spec for mocked component without template
- Better configuration scaffolding
- Can't modify frozen autoload_paths in development environment
- Fix setting custom preview_paths
- 3.15.0 makes ViewComponent incompatible with use in an ActionMailer::Base subclass with a #format method
- Docs
- 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?
- Proxy#metric_in_latest_configs?
- Metric#belongs_to_latest_config?