Phlex lets you compose web views in pure Ruby — kind of like JSX, but not really anything like JSX. It’s super-fast, thread-safe and supports TruffleRuby v22.2+, JRuby v9.2+ and MRI v2.7+. Phlex currently supports HTML and SVG views and we’re exploring JSON and XML.
If you run into any trouble, please start a discussion, or open an issue if you think you’ve found a bug.
- phlex — The library itself
- phlex-rails — Ruby on Rails integration
- phlex.fun — Docs Website
- phlex-markdown — Markdown to HTML using Phlex
- phlex-compiler (WIP) — A compiler for Phlex
- phlex-translation — I18n Support for Phlex
- phlex-testing-nokogiri — Nokogiri support
- phlex-testing-capybara — Capybara support
- marcoroth/phlexing — ERB → Phlex converter
- ViewComponent/lookbook — Document and preview Phlex components in Rails (v2 beta only)
If you’re using Phlex in production, please add it to the list.
Maintaining a library is a lot of work. If your company benefits from this work or is likely to benefit from it in the future, please consider sponsoring Joel.
Caution
Do not open an issue or pull request for security issues.
If you’ve found a potential security issue, report a vulnerability here.
Everyone interacting in Phlex codebases, issue trackers or chat rooms is expected to follow the code of conduct.
Thanks Logology for sponsoring our logo.