phlex-ruby / phlex

A framework for building object-oriented views in Ruby.
https://beta.phlex.fun
MIT License
1.28k stars 83 forks source link

Class `Phlex::Kit` #732

Closed Vagab closed 4 months ago

Vagab commented 4 months ago

Another thing which I think is related to this comment is whether it can be made possible to extend classes with Phlex::Kit? I imagine the only thing standing in the way is this, but I'm not 100% sure.

joeldrapper commented 4 months ago

The problem is part of the contract with kits is that you can include them. For example, I have this in one of the apps I work on.

class ApplicationView < Phlex::HTML
  include Components

  # ...
end
Vagab commented 4 months ago

yeah that makes sense. Thanks!