RubyGems Navigation menu

style_capsule 1.4.0

Provides component-scoped CSS encapsulation using [data-capsule] attributes for Phlex components, ViewComponent components, and ERB templates. Styles are automatically scoped to prevent leakage between components. Inspired by component-based CSS approaches like Angular's view encapsulation and CSS modules. Works with Rails and can be used standalone in other Ruby frameworks (Sinatra, Hanami, etc.) or plain Ruby scripts.

Gemfile:
=

安装:
=

版本列表:

  1. 1.4.0 November 26, 2025 (40.5 KB)
  2. 1.3.0 November 26, 2025 (39.5 KB)
  3. 1.2.0 November 24, 2025 (35.5 KB)
显示所有版本 (共 7 个)

Development 依赖 (16):

activesupport >= 6.0, < 9.0
appraisal ~> 2
phlex-rails ~> 2.0
railties >= 6.0, < 9.0
rake ~> 13
rbs ~> 3
rspec ~> 3
simplecov ~> 0.22
standard ~> 1
webmock ~> 3

所有者:

推送者:

作者:

  • Andrei Makarov

SHA 256 校验和:

=

下载总量 977

这个版本 244

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 3.0

新的版本需要开启多因素验证(MFA): true

使用多因素验证(MFA)发布的版本: true

链接: