sourcemap tests

This commit is contained in:
2021-09-13 18:12:40 +02:00
parent 0bf64b1031
commit 95c2950193
17 changed files with 4001 additions and 663 deletions

View File

@@ -51,7 +51,7 @@ function isSsrToken(c) {
* @returns {string}
*/
function tpl(c, filename) {
return c.template(c.file(filename), {
return c.tpl.execute(c.fs.readFile(filename), {
context: c,
config: config,
/**
@@ -200,8 +200,8 @@ function parseDate(d) {
* clear SSR cache
*/
function clearSSRCache() {
var info = context.deleteDocuments("ssr", {})
context.header("X-SSR-Cleared", info.removed)
var info = context.db.deleteMany("ssr", {})
context.response.header("X-SSR-Cleared", info.removed)
}
/**