feat: add link module
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user