phlex-rails
phlex-rails copied to clipboard
An object-oriented alternative to ActionView for Ruby on Rails.
Hi! I like this change. I needed something like this in the past. However, it appears to have broken this kind of code: ```ruby class ApplicationLayout < Phlex::HTML include Phlex::Rails::Layout...
Even though the generator patches `tailwind.config.js` to scan Phlex components, Tailwind classes won’t work until you manually add `stylesheet_link_tag “tailwind”` to `ApplicationLayout`. IMO if Phlex already knows you’re using Tailwind,...
It would be great to find a way to detect new rails helpers as they are added (or changes to existing ones). Does anyone have any thoughts on how we...
Hi, The phlex install generator assume the new default importmaps are present and include the `javascript_importmap_tags` in this template `lib/generators/phlex/install/templates/application_layout.rb` Maybe we can check if importmap is present on the...
- [ ] Don't do fragment rendering unless Phlex was the initial render - [ ] Parse ActionView output - [ ] Update helpers with a fast-path for fragment matching...
From Issue https://github.com/phlex-ruby/phlex-rails/issues/137, this PR makes it such that: ```ruby render "foo" ``` renders a String instead of the rails partial `foo`. Rendering a partial will be changed to: ```ruby...