Files
gulp-haxetool/src/common/template.ts
T
shmyga 2605c1bbc8
test / test (push) Failing after 5m32s
refactor(preset): rework preset
2026-10-29 20:35:53 +03:00

14 lines
401 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 default new Eta({
autoFilter: true,
filterFunction: (val: unknown): string => (val === null || val === undefined ? "" : String(val)),
useWith: true,
views: path.join(__dirname, "..", "template"),
});