Documentation
¶
Overview ¶
Package wasm holds build-time JS and HTML assets for the `lg -w` WASM bundler. AssembleHTML returns a single self-contained HTML page given the Go runtime support source and the gzipped-base64 program WASM.
lg-host.js carries two markers (__WASM_EXEC_JS__ and __WASM_GZ_B64__) the assembler substitutes with JSON-encoded JS strings. host.html carries a single marker (__LG_HOST_JS_BODY_PLACEHOLDER__) where the populated host JS is inlined.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssembleHTML ¶
AssembleHTML returns the full self-contained HTML page produced by `lg -w`. Pure function: same inputs produce same output. Tested via a golden file in testdata/.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.