code wiki / _hdl_build / nx_site_compose.nx
nx_site_compose.nx
buildroot/runtime/_hdl_build/nx_site_compose.nx
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
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
| 15 | const K_MAGIC_1024: i64 = 1024 |
| 16 | const K_MAGIC_131072: i64 = 131072 |
| 17 | const K_MAGIC_2048: i64 = 2048 |
| 18 | const K_MAGIC_2047: i64 = 2047 |
functions
| 20 | func 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 |
| 22 | func cmp_streq(a: *u8, b: *u8) -> i64 called by 1: compose_build |
| 36 | func cmp_line_match(text: *u8, ls: i64, le: i64, key: *u8, klen: i64) -> i64 |
| 48 | func cmp_copy(arena: *u8, ap: i64, text: *u8, start: i64, end: i64) -> i64 called by 1: cmp_videos |
| 58 | func cmp_get(text: *u8, tn: i64, key: *u8, out: *u8, cap: i64) -> i64 |
| 87 | func cmp_videos(text: *u8, tn: i64, titles: *i64, thumbs: *i64, urls: *i64, arena: *u8, max: i64) -> i64 |
| 122 | func compose_build(text: *u8, tn: i64, fd: i64, game_tpl: *u8) -> i64 called by 6: g_rendermainmaincbuildsp_gen_filesp_provision calls 8: sys_mmapcmp_getcmp_streqcmp_videosvid_buildsgg_build+2 |