code wiki / _hdl_build / nx_brand_assets.nx

nx_brand_assets.nx

buildroot/runtime/_hdl_build/nx_brand_assets.nx

3958 B77 linesdepth 2pulls 2 transitivereach 61 importersview sourcekind librarytopic brand
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_brand_assets.nx nx_web_builder.nx

imports: nx_syscalls.nx

imported by: nx_web_builder.nx

structs

none

consts

none

functions

8func bas_app(out: *u8, pos: i64, cap: i64, s: *u8) -> i64
called by 1: bas_esc_attr
13func 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 }
called by 1: bas_emit_one calls 1: sys_write
16func bas_esc_attr(v: *u8, out: *u8, cap: i64) -> i64
called by 1: bas_emit_one calls 1: bas_app
31func bas_lookup(text: *u8, n: i64, name: *u8, out: *u8, cap: i64) -> i64
called by 1: bas_emit_one calls 1: sys_mmap
61func bas_emit_one(brand: *u8, n: i64, asset: *u8, pre: *u8, post: *u8, fd: i64) -> i64
70func bas_emit_head(brand: *u8, n: i64, fd: i64) -> i64
called by 1: wb_doc_open_branded calls 1: bas_emit_one