Repository navigation
Releases
Releases · NICE-DEV226/rendry-ui
v0.2.1
Patch release.
- View-context helpers return their values —
flash,session, and app helpers now work in expressions (if flash,Alert.new(flash)), not only in content position - Block return-value capture centralized in
Builder#append_resultand respects the fragment filter Rendry.rendercaptures its block's return value too
Install: gem install rendry — also on rubygems.org/gems/rendry
v0.2.0
Highlights
- View context bridging — helpers from the surrounding app (Sinatra
session,params, custom helpers) are callable inside DSL blocks templateblocks — components without arendermethod- String block returns —
div { task.title }appends escaped content data:/aria:flattening —data: { toggle: "x" }→data-toggle="x"- URL sanitizing —
javascript:/vbscript:/non-imagedata:rewritten to#in URL attributes (Rendry.sanitize_urls = falseto opt out) - Thread safety — fragment/cache state isolated per thread;
Rendry::Cacheis mutex-guarded - Performance —
Setlookups for void/boolean attributes
Install: gem install rendry — also on rubygems.org/gems/rendry
v0.1.0
First public release of Rendry — a lightweight, safe-by-default HTML DSL for Ruby.
- DSL tags via
method_missingwith automatic escaping andrawescape hatch Rendry::Componentwithrender, content blocks, and built-in components (Layout, Button, Badge, Card, Alert)Rendry::Kitfor packaging componentshxhelpers for htmx-compatible attributes- Named
fragments for selective rendering andcachefor fragment caching - Declarative
refresheson components Layoutwith optional view transitions- Progressive examples in
examples/(static page → Sinatra + htmx app)
Install: gem install rendry — on rubygems.org/gems/rendry