Files
gulp-haxetool/src/common/template.ts
T
shmyga bc90342667
test / test (push) Failing after 5m38s
feat: add link module
2026-11-02 01:43:20 +03:00

17 lines
487 B
TypeScript

import { Eta } from "eta";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export const template = new Eta({
autoFilter: true,
escapeFunction: (val: unknown): string => String(val),
filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)),
useWith: true,
views: path.join(__dirname, "template"),
});
export default template;