code wiki / _hdl_build / nx_site_compose.nx

nx_site_compose.nx

buildroot/runtime/_hdl_build/nx_site_compose.nx

7188 B177 linesdepth 6pulls 13 transitivereach 9 importersview sourcekind librarytopic site
docsdependenciesstructsconstsfunctions

about

nx_site_compose.nx -- UNIFIED file-driven multi-type builder. One organ reads a .site DATA file and, from a `type|<legal|game|video>` selector line, dispatches to the right page-type builder: legal (default) -> the marketing block-walk (sgp_parse + sg_build_page) game -> the last-mile game template (sgg_build) video -> the video-gallery (vid_build) Default type = legal, so every existing legal .site file keeps building untouched (additive). This makes the "autonomously built from data, no AI" core (R4a) cover ALL three page types through ONE entry point, not just legal. Each field is escaped by the underlying builder this routes to (block-walk sg_esc / crd_render slots / vid_esc) -- this organ only parses + dispatches, it never emits HTML itself. license_tier: ORIGINAL

dependencies 5 imports · 6 importers

nx_sitegen_parse.nx nx_sitegen.nx nx_sitegen_game.nx nx_sitegen_video.nx nx_syscalls.nx nx_site_compose.nx nx_brand_gallery_gate.nx nx_brand_preview.nx nx_site_build_run.nx nx_site_compose_gate.nx nx_site_pages.nx nx_site_provision_lib.nx

imports: nx_sitegen_parse.nxnx_sitegen.nxnx_sitegen_game.nxnx_sitegen_video.nxnx_syscalls.nx

imported by: nx_brand_gallery_gate.nxnx_brand_preview.nxnx_site_build_run.nxnx_site_compose_gate.nxnx_site_pages.nxnx_site_provision_lib.nx

structs

none

consts

15const K_MAGIC_1024: i64 = 1024
16const K_MAGIC_131072: i64 = 131072
17const K_MAGIC_2048: i64 = 2048
18const K_MAGIC_2047: i64 = 2047

functions

20func cmp_klen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: cmp_get
22func cmp_streq(a: *u8, b: *u8) -> i64
called by 1: compose_build
36func cmp_line_match(text: *u8, ls: i64, le: i64, key: *u8, klen: i64) -> i64
48func cmp_copy(arena: *u8, ap: i64, text: *u8, start: i64, end: i64) -> i64
called by 1: cmp_videos
58func cmp_get(text: *u8, tn: i64, key: *u8, out: *u8, cap: i64) -> i64
87func cmp_videos(text: *u8, tn: i64, titles: *i64, thumbs: *i64, urls: *i64, arena: *u8, max: i64) -> i64
122func compose_build(text: *u8, tn: i64, fd: i64, game_tpl: *u8) -> i64