Start Here
What Changed
High-level changes covered by the latest GoLazy guides.
v0.1.8 overview
The v0.1.8 guides focus on production asset behavior, smoother controller rendering, Tailwind stylesheet builds, hot reload, action generators, and route namespaces:
lazyformsis installed automatically bylazyappand renders model form partials with typed field helpers.lazyschema, adapted from Gorillaschema, owns form field naming and decodes lower-camel underscore form keys into structs.- Route-scoped method override lets POST forms target PUT, PATCH, and DELETE
routes with a hidden
_methodfield. - Public files now go through
lazyassets, which computes content hashes, ETags, integrity values, and permanent asset URLs. - Templates can call
asset_pathfor fingerprinted URLs andasset_integrityfor the matching SHA-256 integrity value. - Permanent asset URLs use an immutable cache policy because the URL changes whenever the served bytes change.
- Stylesheets rewrite local
url(...)references to permanent asset URLs. lazy tailwindcan initialize Tailwind input CSS, install Tailwind CLI dependencies, and compile CSS into embedded public stylesheets.lazy jsbundles manifest-declared JavaScript libraries and writes the importmap used by app-owned browser modules.lazyruns a hot-reload development loop that rebuilds the app, restarts it after successful changes, and injects a browser reload client into HTML responses.- Controller actions can rely on automatic view rendering when they set data and return without writing a response.
- Controller actions can receive route parameters and generated request
objects through
GenXcontroller methods. - Route namespaces prefix paths and route names, and namespaced controllers
render from nested view directories such as
views/admin/posts. - Eligible dynamic route responses receive route-scoped ETags without buffering public asset responses.
Read Forms for form helpers and method override.
Read Views and Layouts for asset helpers
and rendering behavior. Read Embedding and Deployment for asset fingerprinting and cache policy. Read
Stylesheets for Tailwind CSS builds. Read
JavaScript Libraries for the lazy js pipeline.