Stub out HTML generation
This commit is contained in:
parent
ba3a3b5a26
commit
a6c5f3e431
2 changed files with 25 additions and 2 deletions
src
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue