code wiki / _hdl_build / nx_site_handoff.nx

nx_site_handoff.nx

buildroot/runtime/_hdl_build/nx_site_handoff.nx

5288 B109 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind tooltopic site
docsdependenciesstructsconstsfunctions

about

nx_site_handoff.nx -- R-HANDOFF of the SITE FACTORY: turn a factory archetype + its .req brief into a PROD-CUSTOMIZABLE handoff artifact = a valid `.site` BLUEPRINT that the EXISTING production editor stack (nx_siteedit_daemon /site: config -> save-validated -> preview -> publish, andelinwest's live loop) and the whole-site emitter (nx_site_build sb_build_site) consume as-is. This is the "pass it along wholesale, then customize in prod via the data layer" contract: the factory generates; the admin owns a plain data file and a WYSIWYG-backed editor from day one -- no lock-in, no regeneration dependency on the factory. usage: nx_site_handoff <reqfile> <archname> <out.site> Emits the blueprint grammar nx_site_build parses (title| header|brand|cta|href hero|headline|sub search|action|placeholder card|title|body step| sig| footer|). Content comes from the SAME .req brief the factory composes from (sa_req_load / sa_ritem / sa_s), defaults where the brief is silent. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_site_archetype.nx nx_site_handoff.nx

imports: nx_site_archetype.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sa_w sh_arch_code ti_arch_name ti_cat sa_req_load ss_readall sys_openat_rd sys_lseek sys_mmap sys_read sys_close sh_line sa_cat sa_disp sa_s sa_req_find ti_arch_name ↻ sa_cat ↻ sa_headline sa_cat ↻ sa_s ↻ sh_mainsec sa_ritem sa_cat ↻ sa_catn sa_rs sa_req_find ↻ sys_openat_wr

structs

none

consts

12const K_MAGIC_32768: i64 = 32768

functions

15func sh_arch_code(nm: *u8) -> i64
called by 1: main calls 1: ti_arch_name
33func sh_mainsec(arch: i64) -> *u8
called by 1: main
43func sh_line(buf: *u8, o: i64, s: *u8) -> i64 { return sa_cat(buf, o, s) }
called by 1: main calls 1: sa_cat
45func main(argc: i64, argv: *i64) -> i64