ruby2html renders HTML from a pure-Ruby block DSL (div class: "card" do h2 @title end). Text and attribute values are escaped by default. Works standalone, as Rails .html.rb templates and partials, inside ERB, in ViewComponent, and as lightweight Ruby2html::Component classes. Tag rendering is a C extension on CRuby, with an output-identical pure-Ruby fallback for JRuby and TruffleRuby. No runtime dependencies.
Required Ruby Version
>= 3.1.0
Authors
sebi
Versions
-
2.1.1
-
source
- 2.1.1 source November 23, 2026 (42.5 KB)
-
java
- 2.1.1 multi-abi November 23, 2026 (45 KB)
-
-
2.1.0
-
source
- 2.1.0 source October 31, 2026 (37.5 KB)
-
java
- 2.1.0 multi-abi October 31, 2026 (40.5 KB)
-
-
2.0.0
-
source
- 2.0.0 source October 31, 2026 (35 KB)
-
-
1.6.6
-
source
- 1.6.6 source February 10, 2025 (108 KB)
-
-
1.6.4
-
source
- 1.6.4 source February 09, 2025 (108 KB)
-