New query rendering engine with handlebars

This commit is contained in:
Zef Hemel
2022-04-28 11:55:38 +02:00
parent 0182a587e4
commit 9ef30d1f49
24 changed files with 2560 additions and 112 deletions
@@ -9,6 +9,12 @@ functions:
updatePlugs:
path: ./plugmanager.ts:updatePlugs
env: server
check:
path: "./plugmanager.ts:checkCommand"
command:
name: "Plug: Check"
mac: "Cmd-Alt-c"
key: "Ctrl-Alt-c"
compile:
path: "./plugmanager.ts:compileCommand"
command:
+12 -1
View File
@@ -36,7 +36,18 @@ export async function compileCommand() {
);
console.log("Wrote this plug", manifest);
await hideBhs();
// Important not to await!
await reloadPlugs();
} catch (e: any) {
await showBhs(e.message);
// console.error("Got this error from compiler", e.message);
}
}
export async function checkCommand() {
let text = await getText();
try {
await compileDefinition(text);
await hideBhs();
reloadPlugs();
} catch (e: any) {
await showBhs(e.message);