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

  1. 2.1.1
    1. source

      1. 2.1.1 source November 23, 2026 (42.5 KB)
    2. java

      1. 2.1.1 multi-abi November 23, 2026 (45 KB)
  2. 2.1.0
    1. source

      1. 2.1.0 source October 31, 2026 (37.5 KB)
    2. java

      1. 2.1.0 multi-abi October 31, 2026 (40.5 KB)
  3. 2.0.0
    1. source

      1. 2.0.0 source October 31, 2026 (35 KB)
  4. 1.6.6
    1. source

      1. 1.6.6 source February 10, 2025 (108 KB)
  5. 1.6.4
    1. source

      1. 1.6.4 source February 09, 2025 (108 KB)
Show all versions (28 total)

Pushed by

GitHub

SHA 256 checksum