Glimmer DSL for Web version 0.8.2 introduces support for HTML value-less boolean attributes. Instead of passing boolean attributes like 'required', 'autofocus', and 'disabled' as hash key-value pairs with true, they can now be passed as Ruby Symbols directly in HTML element arguments. For example, `input(:required, :autofocus, type: 'text', id: 'name-field')` replaces the older `input(type: 'text', id: 'name-field', required: true, autofocus: true)`. The framework is also being presented at wroclove.rb 2026 and RubyConf Austria 2026.

1m read timeFrom andymaleh.blogspot.com
Post cover image

Sort: