9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-25 09:49:23 +00:00

editor/web: update code generator

This commit is contained in:
Anthony Donlon
2025-12-23 20:47:21 +08:00
parent f50f81afd1
commit ae8849f39f
8 changed files with 113 additions and 36 deletions

View File

@@ -52,7 +52,9 @@ export interface ErrorPageParams {
}
// Load EJS template
export const baseTemplate: ejs.TemplateFunction = ejs.compile(templateString);
export const baseTemplate: ejs.TemplateFunction = ejs.compile(templateString, {
rmWhitespace: true
});
/**
* Generate random hex string for ray-id