add nunjucks templating engine to app.js and contextObj

This commit is contained in:
zefie
2025-07-23 12:27:54 -04:00
parent cb9b59cdea
commit 2682c39141
3 changed files with 50 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ const { WTVShared, clientShowAlert } = require(classPath + "WTVShared.js");
const wtvshared = new WTVShared(); // creates minisrv_config
const fs = require('fs');
const nunjucks = require('nunjucks');
const zlib = require('zlib');
const {serialize, unserialize} = require('php-serialize');
const {spawn} = require('child_process');
@@ -242,6 +243,7 @@ var runScriptInVM = function (script_data, user_contextObj = {}, privileged = fa
"http": http,
"https": https,
"sharp": sharp,
"nunjucks": nunjucks,
"URL": URL,
"URLSearchParams": URLSearchParams,
"wtvshared": wtvshared,