code wiki / _hdl_build / nx_web_render.nx
nx_web_render.nx
buildroot/runtime/_hdl_build/nx_web_render.nx
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
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
| 10 | func nw_keyeq(hay: *u8, i: i64, key: *u8) -> i64 called by 1: nw_bind_get |
| 17 | func nw_bind_get(bindings: *u8, key: *u8, out: *u8, cap: i64) -> i64 |
| 35 | func nw_render(out: *u8, off: i64, tpl: *u8, bindings: *u8) -> i64 |
| 55 | func nw_emit_component(path: *u8, kind: *u8, id: *u8, bindings: *u8, out: *u8, off: i64) -> i64 |
| 61 | func nw_bind_add(buf: *u8, off: i64, key: *u8, val: *u8) -> i64 called by 3: fs_render_directoryfs_render_availnw_emit_page calls 3: as_appendas_append_escapedas_len |
| 68 | func nw_emit_page(path: *u8, brand: *u8, title: *u8, sub: *u8, cta: *u8, link: *u8, copyr: *u8, out: *u8) -> i64 |