feat: add link module

This commit is contained in:
2026-11-10 15:29:13 +03:00
parent 7615dbfc48
commit ab72b3c948
11 changed files with 165 additions and 130 deletions
+3 -1
View File
@@ -5,10 +5,12 @@ import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default new Eta({
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;