code wiki / _hdl_build / nx_web_render.nx

nx_web_render.nx

buildroot/runtime/_hdl_build/nx_web_render.nx

5474 B82 linesdepth 3pulls 4 transitivereach 7 importersview sourcekind librarytopic web
docsdependenciesstructsconstsfunctions

about

nx_web_render.nx -- LIB: the WEB domain CONSUMER for the Nishi builder. Resolves web components from the universal catalog by id and substitutes {KEY} bindings into live, sovereign HTML (no JS, no external fetch), and composes a full page from several components. Closes the web loop: build -> teach -> grow -> CONSUME. Boundary defense (rule 12): binding VALUES are HTML-escaped, so page data can't inject markup. license_tier: ORIGINAL

dependencies 3 imports · 2 importers

nx_nishi_builder.nx nx_ad_serve.nx nx_syscalls.nx nx_web_render.nx nx_food_site.nx nx_web_render_gate.nx

imports: nx_nishi_builder.nxnx_ad_serve.nxnx_syscalls.nx

imported by: nx_food_site.nxnx_web_render_gate.nx

structs

none

consts

none

functions

10func nw_keyeq(hay: *u8, i: i64, key: *u8) -> i64
called by 1: nw_bind_get
17func nw_bind_get(bindings: *u8, key: *u8, out: *u8, cap: i64) -> i64
called by 1: nw_render calls 2: as_lennw_keyeq
35func nw_render(out: *u8, off: i64, tpl: *u8, bindings: *u8) -> i64
55func nw_emit_component(path: *u8, kind: *u8, id: *u8, bindings: *u8, out: *u8, off: i64) -> i64
61func nw_bind_add(buf: *u8, off: i64, key: *u8, val: *u8) -> i64
68func nw_emit_page(path: *u8, brand: *u8, title: *u8, sub: *u8, cta: *u8, link: *u8, copyr: *u8, out: *u8) -> i64