Documentation
¶
Overview ¶
Package render bridges the Kiln world IR to a runnable framework.App.
Apply walks a *world.World and registers every surface — entities, pages, custom routes, hooks, seeds, middleware — onto an existing *framework.App. Phase 1 covers entities, pages, seeds, and middleware; hooks and custom routes carry declarative actions whose evaluator lands in Phase 3 and are stubbed with logged warnings until then.
The package is the bridge: callers compose a framework.App as usual and pass it through Apply. No reflection; conversions are explicit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply registers every world surface onto app. Equivalent to calling ApplyDetailed and discarding the deferred report.
func ApplySeeds ¶
ApplySeeds inserts the world's seed rows into db. It's a separate call because seeding requires migrations to have run first, and Kiln owns the migration step (Phase 4) — Apply registers the entities, the caller migrates, the caller seeds.
func RenderNode ¶
RenderNode renders current design-system component kinds directly and falls back to the leaf noderender package for one-to-one semantic HTML nodes. This keeps Kiln's live preview on the same component/CSS surface as generated Go without pulling the authoring engine into generated apps.