code wiki / _hdl_build / nx_sitegen_studio.nx

nx_sitegen_studio.nx

buildroot/runtime/_hdl_build/nx_sitegen_studio.nx

2539 B51 linesdepth 6pulls 9 transitivereach 11 importersview sourcekind librarytopic sitegen
docsdependenciesstructsconstsfunctions

about

nx_sitegen_studio.nx -- the sovereign WYSIWYG STUDIO library (no main; the daemon + the gate import it). se_build_site = the /build endpoint logic: take a posted (UNTRUSTED) .site blueprint, parse + build it through the GOVERNED sovereign engine (nx_sitegen_parse + nx_sitegen, which escape every field and refuse non-UX-compliant pages), and return the built HTML in a buffer. This is what the editor's thin JS POSTs to for its live preview -- the build is ALWAYS the sovereign organ, never JS. se_editor_html = serve the editor client (web_assets/_studio/editor.html). license_tier: ORIGINAL

dependencies 3 imports · 5 importers

nx_sitegen_parse.nx nx_sitegen.nx nx_syscalls.nx nx_sitegen_studio.nx nx_sitegen_blocks_gate.nx nx_sitegen_studio_gate.nx nx_studio_exceed_gate.nx nx_studio_tiers.nx nx_studio_tiers_gate.nx

imports: nx_sitegen_parse.nxnx_sitegen.nxnx_syscalls.nx

imported by: nx_sitegen_blocks_gate.nxnx_sitegen_studio_gate.nxnx_studio_exceed_gate.nxnx_studio_tiers.nxnx_studio_tiers_gate.nx

structs

none

consts

10const K_MAGIC_131072: i64 = 131072

functions

12func st_slurp(path: *u8, buf: *u8, cap: i64) -> i64
31func se_build_site(blob: *u8, n: i64, out: *u8, cap: i64) -> i64
49func se_editor_html(out: *u8, cap: i64) -> i64
called by 1: main calls 1: st_slurp