Stub out HTML generation

This commit is contained in:
Tangent 2023-09-08 00:04:00 -04:00
parent ba3a3b5a26
commit a6c5f3e431
2 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,4 @@
import { ALL as HTML } from './lib/html';
import { parse } from './parser';
import { runNoctl, Vm } from './vm';
import { AsHtml } from './words';
@ -52,7 +53,7 @@ let theCard: Card = {
[button "No we want to render UI" \\{noop}]
} {
Since we want escapes to work, these blocks [i will] be subject to substitutions.
Since we want escapes to work, these blocks [i will] be subject to substitutions, maybe via a relaxed bareWordTmpl.
}
# A comment
para {
@ -84,7 +85,7 @@ const debugDisplay = document.createElement("pre");
function render() {
const vm: Vm = {
mode: "render",
commands: {},
commands: { ...HTML },
output: "",
};
const html = renderCard(vm, theCard.code);