Skip to content

Releases

v0.2.1

Choose a tag to compare

@NICE-DEV226 NICE-DEV226 released this 11 Nov 09:40

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_result and respects the fragment filter
  • Rendry.render captures its block's return value too

Install: gem install rendry — also on rubygems.org/gems/rendry

v0.2.0

Choose a tag to compare

@NICE-DEV226 NICE-DEV226 released this 11 Nov 09:17

Highlights

  • View context bridging — helpers from the surrounding app (Sinatra session, params, custom helpers) are callable inside DSL blocks
  • template blocks — components without a render method
  • String block returns — div { task.title } appends escaped content
  • data:/aria: flattening — data: { toggle: "x" } → data-toggle="x"
  • URL sanitizing — javascript:/vbscript:/non-image data: rewritten to # in URL attributes (Rendry.sanitize_urls = false to opt out)
  • Thread safety — fragment/cache state isolated per thread; Rendry::Cache is mutex-guarded
  • Performance — Set lookups for void/boolean attributes

Install: gem install rendry — also on rubygems.org/gems/rendry

v0.1.0

Choose a tag to compare

@NICE-DEV226 NICE-DEV226 released this 11 Nov 09:18

First public release of Rendry — a lightweight, safe-by-default HTML DSL for Ruby.

  • DSL tags via method_missing with automatic escaping and raw escape hatch
  • Rendry::Component with render, content blocks, and built-in components (Layout, Button, Badge, Card, Alert)
  • Rendry::Kit for packaging components
  • hx helpers for htmx-compatible attributes
  • Named fragments for selective rendering and cache for fragment caching
  • Declarative refreshes on components
  • Layout with optional view transitions
  • Progressive examples in examples/ (static page → Sinatra + htmx app)

Install: gem install rendry — on rubygems.org/gems/rendry