diff --git a/package-lock.json b/package-lock.json index 86880a6..8ade9a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16582,7 +16582,7 @@ }, "packages/common": { "name": "@silverbulletmd/common", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "6.0.1", @@ -16606,7 +16606,7 @@ }, "packages/plugos": { "name": "@plugos/plugos", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { "@jest/globals": "^27.5.1", @@ -16662,12 +16662,12 @@ }, "packages/plugos-silverbullet-syscall": { "name": "@silverbulletmd/plugos-silverbullet-syscall", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT" }, "packages/plugos-syscall": { "name": "@plugos/plugos-syscall", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT" }, "packages/plugos/node_modules/@lezer/common": { @@ -18030,13 +18030,13 @@ }, "packages/plugs": { "name": "@silverbulletmd/plugs", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { "@jest/globals": "^27.5.1", "@lezer/generator": "1.0.0", "@lezer/lr": "1.0.0", - "@silverbulletmd/common": "^0.0.18", + "@silverbulletmd/common": "^0.0.19", "@types/yaml": "^1.9.7", "handlebars": "^4.7.7", "markdown-it": "^12.3.2", @@ -18069,7 +18069,7 @@ }, "packages/server": { "name": "@silverbulletmd/server", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { "@codemirror/lang-javascript": "6.0.0", @@ -18077,9 +18077,9 @@ "@codemirror/legacy-modes": "6.0.0", "@jest/globals": "^27.5.1", "@lezer/markdown": "1.0.0", - "@silverbulletmd/common": "^0.0.18", - "@silverbulletmd/plugs": "^0.0.18", - "@silverbulletmd/web": "^0.0.18", + "@silverbulletmd/common": "^0.0.19", + "@silverbulletmd/plugs": "^0.0.19", + "@silverbulletmd/web": "^0.0.19", "better-sqlite3": "^7.5.0", "body-parser": "^1.19.2", "buffer": "^6.0.3", @@ -19175,7 +19175,7 @@ }, "packages/web": { "name": "@silverbulletmd/web", - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "6.0.1", @@ -26563,7 +26563,7 @@ "@jest/globals": "^27.5.1", "@lezer/generator": "1.0.0", "@lezer/lr": "1.0.0", - "@silverbulletmd/common": "^0.0.18", + "@silverbulletmd/common": "^0.0.19", "@types/markdown-it": "^12.2.3", "@types/yaml": "^1.9.7", "handlebars": "^4.7.7", @@ -26604,9 +26604,9 @@ "@parcel/transformer-sass": "2.5.0", "@parcel/transformer-webmanifest": "2.5.0", "@parcel/validator-typescript": "2.5.0", - "@silverbulletmd/common": "^0.0.18", - "@silverbulletmd/plugs": "^0.0.18", - "@silverbulletmd/web": "^0.0.18", + "@silverbulletmd/common": "^0.0.19", + "@silverbulletmd/plugs": "^0.0.19", + "@silverbulletmd/web": "^0.0.19", "@types/cors": "^2.8.12", "@types/events": "^3.0.0", "@types/express": "^4.17.13", diff --git a/packages/common/package.json b/packages/common/package.json index 94d6e59..7d2f31c 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -4,7 +4,7 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "dependencies": { "@codemirror/autocomplete": "6.0.1", diff --git a/packages/plugos-silverbullet-syscall/package.json b/packages/plugos-silverbullet-syscall/package.json index 3e808da..12bc603 100644 --- a/packages/plugos-silverbullet-syscall/package.json +++ b/packages/plugos-silverbullet-syscall/package.json @@ -4,6 +4,6 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT" } diff --git a/packages/plugos-syscall/package.json b/packages/plugos-syscall/package.json index 1cf6059..3bec67b 100644 --- a/packages/plugos-syscall/package.json +++ b/packages/plugos-syscall/package.json @@ -4,6 +4,6 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT" } diff --git a/packages/plugos/package.json b/packages/plugos/package.json index 8e4ba6a..86658ae 100644 --- a/packages/plugos/package.json +++ b/packages/plugos/package.json @@ -4,7 +4,7 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "bin": { "plugos-bundle": "./dist/plugos/plugos-bundle.js", diff --git a/packages/plugs/package.json b/packages/plugs/package.json index fa50b2a..81d42f6 100644 --- a/packages/plugs/package.json +++ b/packages/plugs/package.json @@ -4,7 +4,7 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "scripts": { "generate": "lezer-generator query/query.grammar -o query/parse-query.js", @@ -34,7 +34,7 @@ "@jest/globals": "^27.5.1", "@lezer/generator": "1.0.0", "@lezer/lr": "1.0.0", - "@silverbulletmd/common": "^0.0.18", + "@silverbulletmd/common": "^0.0.19", "@types/yaml": "^1.9.7", "handlebars": "^4.7.7", "markdown-it": "^12.3.2", diff --git a/packages/plugs/query/engine.ts b/packages/plugs/query/engine.ts index 2024cf7..0ca3055 100644 --- a/packages/plugs/query/engine.ts +++ b/packages/plugs/query/engine.ts @@ -239,6 +239,7 @@ export async function renderQuery( } }); let { text: templateText } = await readPage(parsedQuery.render); + templateText = `{{#each .}}\n${templateText}\n{{/each}}`; let template = Handlebars.compile(templateText, { noEscape: true }); return template(data); } diff --git a/packages/server/package.json b/packages/server/package.json index 4b08b91..4363f83 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -4,7 +4,7 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "bin": { "silverbullet": "./dist/server/server.js" @@ -41,9 +41,9 @@ "@codemirror/legacy-modes": "6.0.0", "@jest/globals": "^27.5.1", "@lezer/markdown": "1.0.0", - "@silverbulletmd/common": "^0.0.18", - "@silverbulletmd/plugs": "^0.0.18", - "@silverbulletmd/web": "^0.0.18", + "@silverbulletmd/common": "^0.0.19", + "@silverbulletmd/plugs": "^0.0.19", + "@silverbulletmd/web": "^0.0.19", "better-sqlite3": "^7.5.0", "body-parser": "^1.19.2", "buffer": "^6.0.3", diff --git a/packages/web/package.json b/packages/web/package.json index d3f4df3..e31116c 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -4,7 +4,7 @@ "name": "Zef Hemel", "email": "zef@zef.me" }, - "version": "0.0.18", + "version": "0.0.19", "license": "MIT", "scripts": { "watch": "rm -rf .parcel-cache && parcel watch",