|
@@ -1049,7 +1049,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
const SINGLE_FILE_VARIABLE_NAME_PREFIX = "--sf-img-";
|
|
const SINGLE_FILE_VARIABLE_NAME_PREFIX = "--sf-img-";
|
|
|
|
|
|
|
|
class ProcessorHelper {
|
|
class ProcessorHelper {
|
|
|
- static async evalTemplate(template, options, content, dontReplaceSlash) {
|
|
|
|
|
|
|
+ static async evalTemplate(template = "", options, content, dontReplaceSlash) {
|
|
|
const date = new Date();
|
|
const date = new Date();
|
|
|
const url = docUtil.parseURL(options.url);
|
|
const url = docUtil.parseURL(options.url);
|
|
|
template = await Util.evalTemplateVariable(template, "page-title", () => options.title || "No title", dontReplaceSlash);
|
|
template = await Util.evalTemplateVariable(template, "page-title", () => options.title || "No title", dontReplaceSlash);
|