Quick Start
Changelog
Release changes covered by the v0.1.9 GoLazy guides.
v0.1.9 release changes
GoLazy v0.1.9 focuses on richer controller responses, format negotiation, Server-Sent Events, and application-owned JavaScript modules.
Framework
- Controller actions can negotiate registered response formats from Accept
headers and path suffixes such as
.html,.json, and.md. Read Formats And MIME. - Turbo-frame-aware rendering can render frame responses without replacing the whole layout. Read Turbo Frames.
lazyturboprovides frame helpers for server-rendered Hotwire interactions. Read Hotwire Turbo.- Controller actions can use
Redirect,RedirectTo,RedirectBackOrTo,RedirectBack, and same-hostURLFromvalidation. Read Redirects, Metadata, And Errors. - Controller actions can call
PathForagainst the current route table. Read Controller Routes. - Controller response helpers can set status, headers, content type, layout, and no-layout rendering before the response is committed. Read Redirects, Metadata, And Errors.
golazy.dev/lazysseandlazycontroller.Base.SSEStreamsupport event sends, JSON events, comments, heartbeats, source subscriptions, andLast-Event-IDaccess. Read Server-Sent Events.
Runtime behavior
- Controller rendering is buffered before commit, so status, headers, layout selection, and render errors can be coordinated consistently. Read Actions.
lazyroutes.Scoperecognizes registered format suffixes and dispatches the underlying route with the requested format in request context. Read Formats And MIME.- Long-lived streaming responses bypass dynamic route ETag generation and response-buffer rewrites. Read Server-Sent Events.
- Cookie session middleware saves pending session changes before a streaming response is committed. Read Server-Sent Events.
- The route action-call planner now lives under
lazyroutes/actioncall. Read Generator Arguments.
CLI and generated apps
lazy jsbundles application JavaScript fromapp/js, writes/js/...importmap entries for every app JavaScript file, and expands// golazy:turboand// golazy:stimulusdirectives inapp/js/app.js. Read app/js Modules and lazy js And js.toml.lazyhot reload runs JavaScript asset generation for apps withjs.tomlbefore the initial build and after changes toapp/js,js.toml, or JavaScript package metadata. Read lazy Dev Loop Integration.lazy newselects the matching sample application template with app-owned JavaScript modules, controller formats, redirects, response metadata helpers, and SSE examples. Read Full App.
Read the Upgrade Guide before moving an application from v0.1.8.