code wiki / _hdl_build / nx_site_handoff.nx
nx_site_handoff.nx
buildroot/runtime/_hdl_build/nx_site_handoff.nx
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
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
structs
| none |
consts
| 12 | const K_MAGIC_32768: i64 = 32768 |
functions
| 15 | func sh_arch_code(nm: *u8) -> i64 |
| 33 | func sh_mainsec(arch: i64) -> *u8 called by 1: main |
| 43 | func sh_line(buf: *u8, o: i64, s: *u8) -> i64 { return sa_cat(buf, o, s) } |
| 45 | func main(argc: i64, argv: *i64) -> i64 |