code wiki / _hdl_build / nx_cms_render.nx
nx_cms_render.nx
buildroot/runtime/_hdl_build/nx_cms_render.nx
about
nx_cms_render.nx -- CMS ladder step 10b: RENDER-FROM-DATA. The template (structure/design tokens,
the team's) is HTML with {{key}} markers; the content store (the legal team's data) fills them.
Defense in depth (spec law): keys ending in _html were allowlist-SANITIZED at write and insert raw;
every other key is entity-ESCAPED here at render. Unknown {{key}} renders as nothing (and never
leaks the marker). Composes nx_cms_store + nx_html_sanitize. license_tier: ORIGINAL
dependencies 2 imports · 3 importers
imports: nx_cms_store.nxnx_html_sanitize.nx
imported by: nx_cms_admin.nxnx_cms_c2_test.nxnx_sitegen_game.nx
structs
| none |
consts
| 8 | const K_MAGIC_262144: i64 = 262144 |
| 9 | const K_MAGIC_262143: i64 = 262143 |
functions
| 12 | func crd_is_html(key: *u8, kl: i64) -> i64 called by 1: crd_render |
| 23 | func crd_render(tpl: *u8, tn: i64, sbuf: *u8, sn: i64, out: *u8, cap: i64) -> i64 |