Class: Clowk::Phlex::Component

Inherits:
Phlex::HTML
  • Object
show all
Defined in:
lib/clowk/phlex/component.rb

Overview

Component is the root Phlex class every clowk-phlex component inherits from. Kept intentionally thin so the lib renders standalone (no Rails required for the pure-view components). Rails view helpers (routes, form_with) are mixed into the specific components that need them, not forced on every subclass.

NOTE: ::Phlex::HTML is fully qualified — inside Clowk, the bare Phlex would resolve to Clowk::Phlex, not the phlex gem.