Module: StyleCapsule::HelperScopeCache
- Included in:
- Helper, StandaloneHelper
- Defined in:
- lib/style_capsule/helper_scope_cache.rb
Overview
Bounded per-thread cache for scoped CSS from ERB / standalone helpers (avoids unbounded Thread.current growth).
Constant Summary collapse
- MAX_SCOPE_CACHE_ENTRIES =
256- STYLE_OPEN =
%r{<style[^>]*>}im- STYLE_CLOSE =
%r{</style>}im