Module: Pinmark::Phlex
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/pinmark/phlex.rb
Overview
Concern intended to be ‘include`d into the host application’s Phlex component base class (typically ‘Components::Base`). Provides an `around_template` override that pushes/pops the per-request tracker and emits `<!– pinmark:begin/end –>` markers around the component’s rendered HTML.
Inert outside of development mode and when no tracker is set on the current request, so it is safe to include unconditionally.