code wiki / _hdl_build / nx_cms_render.nx

nx_cms_render.nx

buildroot/runtime/_hdl_build/nx_cms_render.nx

2795 B67 linesdepth 3pulls 4 transitivereach 16 importersview sourcekind librarytopic cms
docsdependenciesstructsconstsfunctions

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

nx_cms_store.nx nx_html_sanitize.nx nx_cms_render.nx nx_cms_admin.nx nx_cms_c2_test.nx nx_sitegen_game.nx

imports: nx_cms_store.nxnx_html_sanitize.nx

imported by: nx_cms_admin.nxnx_cms_c2_test.nxnx_sitegen_game.nx

structs

none

consts

8const K_MAGIC_262144: i64 = 262144
9const K_MAGIC_262143: i64 = 262143

functions

12func crd_is_html(key: *u8, kl: i64) -> i64
called by 1: crd_render
23func crd_render(tpl: *u8, tn: i64, sbuf: *u8, sn: i64, out: *u8, cap: i64) -> i64