code wiki / _hdl_build / nx_brand_assets.nx
nx_brand_assets.nx
buildroot/runtime/_hdl_build/nx_brand_assets.nx
about
nx_brand_assets.nx -- brand ASSET SLOTS as DATA: `asset|<name>|<value>` (favicon / logo / og-image / og-title).
bas_emit_head writes the corresponding <head> tags (<link rel=icon>, apple-touch-icon, og:image, og:title) with
every value ATTRIBUTE-ESCAPED (no breakout) -- wired into wb_doc_open_branded. A brand with no asset tokens emits
nothing (backward-compatible). This is the asset-slot system (a full DAM is a separate arc). Library. 100% sovereign.
license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_web_builder.nx
structs
| none |
consts
| none |
functions
| 8 | func bas_app(out: *u8, pos: i64, cap: i64, s: *u8) -> i64 called by 1: bas_esc_attr |
| 13 | func bas_fw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 16 | func bas_esc_attr(v: *u8, out: *u8, cap: i64) -> i64 |
| 31 | func bas_lookup(text: *u8, n: i64, name: *u8, out: *u8, cap: i64) -> i64 |
| 61 | func bas_emit_one(brand: *u8, n: i64, asset: *u8, pre: *u8, post: *u8, fd: i64) -> i64 |
| 70 | func bas_emit_head(brand: *u8, n: i64, fd: i64) -> i64 |